Skip to content

Commit

Permalink
chore: add ecr push action
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Jun 11, 2024
1 parent 79a07fb commit b5e967e
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,16 @@ jobs:
egress-policy: audit

- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- name: Publish to Registry

- name: Login to ECR
id: ecr
uses: elgohr/ecr-login-action@v3
with:
access_key: ${{ secrets.ECR_AWS_ACCESS_KEY }}
secret_access_key: ${{ secrets.ECR_AWS_SECRET_ACCESS_KEY }}
region: ${{ secrets.ECR_AWS_REGION }}

- name: Publish to DockerHub Registry
uses: elgohr/Publish-Docker-Github-Action@43dc228e327224b2eda11c8883232afd5b34943b # v5
with:
name: flanksource/config-db
Expand All @@ -77,6 +86,18 @@ jobs:
snapshot: true
dockerfile: build/Dockerfile
tags: "latest,v${{ needs.semantic-release.outputs.release-version }}"

- name: Publish to AWS ECR
uses: elgohr/Publish-Docker-Github-Action@43dc228e327224b2eda11c8883232afd5b34943b # v5
with:
name: config-db
username: ${{ steps.ecr.outputs.username }}
password: ${{ steps.ecr.outputs.password }}
registry: ${{ steps.ecr.outputs.registry }}
snapshot: true
dockerfile: build/Dockerfile
tags: "latest,v${{ needs.semantic-release.outputs.release-version }}"

helm:
runs-on: ubuntu-latest
needs: [semantic-release, docker]
Expand Down

0 comments on commit b5e967e

Please sign in to comment.