-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish Arcane Operator to ECR public repository (#103)
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |