Skip to content

Commit

Permalink
fix: commented mutable tags
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielg2020 committed Apr 15, 2024
1 parent dd43e96 commit 10e1c97
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ jobs:
# with:
# registry: ${{ env.ECR_REGISTRY }}

- name: Untag mutable tags
if: ${{ inputs.push && steps.mutable-meta.outputs.tags }}
env:
MUTABLE_TAGS: ${{ steps.mutable-meta.outputs.tags }}
REPOSITORY: ${{ inputs.repository }}
run: |
for tag in $MUTABLE_TAGS; do
aws ecr batch-delete-image --repository-name $REPOSITORY --image-ids imageTag=$tag
done
# - name: Untag mutable tags
# if: ${{ inputs.push && steps.mutable-meta.outputs.tags }}
# env:
# MUTABLE_TAGS: ${{ steps.mutable-meta.outputs.tags }}
# REPOSITORY: ${{ inputs.repository }}
# run: |
# for tag in $MUTABLE_TAGS; do
# aws ecr batch-delete-image --repository-name $REPOSITORY --image-ids imageTag=$tag
# done

- name: Build ${{ inputs.push && 'and push ' || '' }}Docker image
id: build-and-push
Expand Down

0 comments on commit 10e1c97

Please sign in to comment.