Skip to content

Conversation

@lukey-luke
Copy link
Contributor

🎫 Ticket

DPC-5063

🛠 Changes

  • add changes so that "dev" docker images do not get pushed to prod AWS account
  • add safeguards so promoting or deploying to upper environments will fail for "dev" docker images

ℹ️ Context

  • ECR lifecycle policy will automatically evict old "dev" builds that do not use the release build format.
  • Additional details in context section of linked ticket.

🧪 Validation

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') }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only pushes dev tags?

fi
echo $image_tag
- name: Fail if non-release image tag used for upper environments
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should fail before checking for latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants