File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ name: ecr-release.yml
22on :
33 release :
44 types : [published]
5+ push :
6+ branches : [feat/publish-emulator-image]
57
68permissions :
79 contents : read
@@ -46,13 +48,10 @@ jobs:
4648 python -m pip install virtualenv==20.39.0
4749 - name : Build distribution
4850 run : hatch build
49- - name : pip install
50- run : |
51- pip install -e .
5251 - name : Get version from __about__.py
5352 id : version
5453 run : |
55- VERSION=$(python -c "from aws_durable_execution_sdk_python_testing import __version__; print(__version__)" )
54+ VERSION=$(grep "^__version__" src/ aws_durable_execution_sdk_python_testing/__about__.py | cut -d'"' -f2 )
5655 echo "VERSION=$VERSION"
5756 echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
5857 - name : Configure AWS Credentials
7170 env :
7271 ECR_REGISTRY : ${{ steps.login-ecr-public.outputs.registry }}
7372 ECR_REPOSITORY : ${{ env.ecr_repository_name }}
74- IMAGE_TAG : " ${{ env.image_tag }}v ${{ steps.version.outputs.VERSION }}"
75- PER_ARCH_IMAGE_TAG : " ${{ matrix.arch }}v ${{ steps.version.outputs.VERSION }}"
73+ IMAGE_TAG : " v ${{ steps.version.outputs.VERSION }}- ${{ env.image_tag }}"
74+ PER_ARCH_IMAGE_TAG : " v ${{ steps.version.outputs.VERSION }}- ${{ matrix.arch }}"
7675 run : |
7776 if [ "${{ matrix.arch }}" = "x86_64" ]; then
7877 docker build --platform linux/amd64 --provenance false "${{ env.docker_build_dir }}" -f "${{ env.path_to_dockerfile }}" -t "$ECR_REGISTRY/$ECR_REPOSITORY:$PER_ARCH_IMAGE_TAG"
You can’t perform that action at this time.
0 commit comments