Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ jobs:
id: login-ecr-prod
uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2.0.1
- name: Push image to registries for prod aws account
if: ${{ !startsWith(needs.generate_docker_tag.outputs.docker_tag, 'rls-r') }}
env:
IMAGE_TAG: ${{ needs.generate_docker_tag.outputs.docker_tag }}
REGISTRY: ${{ steps.login-ecr-prod.outputs.registry }}
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/ecs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ jobs:
echo "image_tag=$EXPLICIT_TAG" >> "$GITHUB_OUTPUT"
fi
echo $image_tag

- name: Fail if non-release image tag used for upper environments
if: ${{ (inputs.env == 'sandbox' || inputs.env == 'prod') && !startsWith(steps.image-tag.outputs.image_tag, 'rls-r') }}
run: |
echo "Dev image detected '${{ steps.image-tag.outputs.image_tag }}'. Tag must start with 'rls-r'."
exit 1

- uses: slackapi/slack-github-action@b0fa283ad8fea605de13dc3f449259339835fc52 # v2.1.0
name: Slack Starting
with:
Expand Down