Skip to content

Commit

Permalink
AAE-17274 create repository on ECR if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemedeiros committed Nov 28, 2023
1 parent 020b943 commit a42ae58
Showing 1 changed file with 7 additions and 0 deletions.
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

0 comments on commit a42ae58

Please sign in to comment.