Skip to content

Commit e19f9ae

Browse files
committed
Combined workflow into single file release.yml
1 parent a4a4062 commit e19f9ae

File tree

2 files changed

+24
-32
lines changed

2 files changed

+24
-32
lines changed

.github/workflows/amazon-ecr.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,27 @@ jobs:
5656
platforms: linux/amd64,linux/arm64
5757
push: true
5858
tags: ${{ steps.meta.outputs.tags }}
59+
60+
AWS:
61+
name: AWS ECR public
62+
runs-on: ubuntu-latest
63+
steps:
64+
- name: Checkout
65+
uses: actions/checkout@v2
66+
67+
- name: Configure AWS credentials
68+
uses: aws-actions/configure-aws-credentials@v1
69+
with:
70+
role-to-assume: ${{ secrets.AWS_ARN }}
71+
aws-region: ap-south-1
72+
73+
- name: Login to Amazon ECR
74+
id: login-ecr
75+
uses: aws-actions/amazon-ecr-login@v1
76+
77+
- name: Build, tag, and push the image to Amazon ECR
78+
id: build-image
79+
run: |
80+
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/r9h8b0z6
81+
docker build -t public.ecr.aws/r9h8b0z6/cryptgeon:latest .
82+
docker push public.ecr.aws/r9h8b0z6/cryptgeon:latest

0 commit comments

Comments
 (0)