File tree 2 files changed +31
-35
lines changed
2 files changed +31
-35
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
name : Publish
2
2
3
3
on :
4
- workflow_dispatch :
5
4
push :
6
- tags :
7
- - ' v*.*.*'
5
+ branches :
6
+ - main
7
+ permissions :
8
+ id-token : write
9
+ contents : read
10
+ env :
11
+ REPOSITORY_NAME : cryptgeon
8
12
9
13
jobs :
10
14
cli :
56
60
platforms : linux/amd64,linux/arm64
57
61
push : true
58
62
tags : ${{ steps.meta.outputs.tags }}
63
+
64
+ AWS :
65
+ name : AWS ECR public
66
+ runs-on : ubuntu-latest
67
+ steps :
68
+ - name : Checkout
69
+ uses : actions/checkout@v2
70
+
71
+ - name : Configure AWS credentials
72
+ uses : aws-actions/configure-aws-credentials@v1
73
+ with :
74
+ role-to-assume : ${{ secrets.AWS_ARN }}
75
+ aws-region : ap-south-1
76
+
77
+ - name : Login to Amazon ECR
78
+ id : login-ecr
79
+ uses : aws-actions/amazon-ecr-login@v1
80
+
81
+ - name : Build, tag, and push the image to Amazon ECR
82
+ id : build-image
83
+ run : |
84
+ aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/r9h8b0z6
85
+ docker build -t public.ecr.aws/r9h8b0z6/cryptgeon:latest .
86
+ docker push public.ecr.aws/r9h8b0z6/cryptgeon:latest
You can’t perform that action at this time.
0 commit comments