Skip to content

Commit

Permalink
AAE-17274 create ECR repo as part of build image if needed (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemedeiros authored Nov 28, 2023
1 parent 020b943 commit c50719a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/actions/docker-build-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@ runs:
with:
mask-password: true

- name: Create ECR repository if needed
if: env.PUSH_IMAGE == 'true'
shell: bash
run: |
aws ecr describe-repositories --repository-names ${IMAGE_REPOSITORY} \
|| aws ecr create-repository --repository-name ${IMAGE_REPOSITORY}
- name: Build and Push image ${{ env.IMAGE_NAME }}
if: env.PUSH_IMAGE == 'true'
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v5.2.0
v5.3.0

0 comments on commit c50719a

Please sign in to comment.