Skip to content

Commit

Permalink
Push latest tag if workflow is "Main pipeline Workflow"
Browse files Browse the repository at this point in the history
  • Loading branch information
hawx committed Jun 3, 2024
1 parent 81a2a87 commit 0614451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-push-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
ECR_REPOSITORY: ${{ matrix.ecr_repository }}
run: |
docker tag ${{ matrix.ecr_repository }}:latest $ECR_REGISTRY/$ECR_REPOSITORY:${{ inputs.docker_tag }}
if ${{ github.workflow == 'Path To Live' }}; then
if ${{ github.workflow == 'Main pipeline Workflow' }}; then
docker tag ${{ matrix.ecr_repository }}:latest $ECR_REGISTRY/$ECR_REPOSITORY:latest
docker tag ${{ matrix.ecr_repository }}:latest $ECR_REGISTRY/$ECR_REPOSITORY:main-${{ inputs.docker_tag }}
fi
Expand Down

0 comments on commit 0614451

Please sign in to comment.