Skip to content

Commit

Permalink
Publish Arcane Operator to ECR public repository (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-vitaliy authored Jul 2, 2024
1 parent 756065a commit ef06989
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,38 @@ jobs:
container_registry_user: ${{ github.actor }}
container_registry_token: ${{ secrets.GITHUB_TOKEN }}
container_registry_address: ghcr.io/sneaksanddata/

# AWS ECR Public Registry related steps
- name: Import AWS Secrets
uses: hashicorp/[email protected]
if: ${{ startsWith(github.ref, 'refs/tags') }}
with:
url: https://hashicorp-vault.awsp.sneaksanddata.com/
role: github
method: jwt
secrets: |
/secret/data/common/package-publishing/aws-ecr-public/production/container-user-public access_key | ACCESS_KEY ;
/secret/data/common/package-publishing/aws-ecr-public/production/container-user-public access_key_id | ACCESS_KEY_ID ;
id: aws_secrets

- name: Configure AWS Credentials
uses: aws-actions/[email protected]
if: ${{ startsWith(github.ref, 'refs/tags') }}
with:
aws-access-key-id: ${{ env.ACCESS_KEY_ID }}
aws-secret-access-key: ${{ env.ACCESS_KEY }}
aws-region: us-east-1

- name: Login to Amazon ECR Public
if: ${{ startsWith(github.ref, 'refs/tags') }}
uses: aws-actions/amazon-ecr-login@v2
with:
registry-type: public

- name: Push image to ECR Public registry
if: ${{ startsWith(github.ref, 'refs/tags') }}
uses: akhilerm/[email protected]
with:
src: ${{ steps.meta.outputs.tags }}
dst: public.ecr.aws/s0t1h2z6/arcane/${{ github.event.repository.name }}:${{ steps.meta.outputs.version }}
# END AWS ECR Registry related steps

0 comments on commit ef06989

Please sign in to comment.