File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,19 @@ name: docker-cloud go publish
2
2
on : push
3
3
jobs :
4
4
publish :
5
+ permissions :
6
+ id-token : write
5
7
runs-on : ubuntu-latest
6
8
defaults :
7
9
run :
8
10
working-directory : docker-cloud
9
11
steps :
10
12
- uses : actions/checkout@v3
13
+ - name : Configure AWS Credentials
14
+ uses : aws-actions/configure-aws-credentials@v1
15
+ with :
16
+ role-to-assume : arn:aws:iam::464590638146:role/GitHubActionECRPublicPushImage
17
+ aws-region : us-east-1
11
18
- name : Login to Amazon ECR Public
12
19
id : login-ecr-public
13
20
uses : aws-actions/amazon-ecr-login@v1
Original file line number Diff line number Diff line change @@ -118,3 +118,14 @@ And:
118
118
cache-dependency-path : " docker-cloud/go.sum"
119
119
cache : true
120
120
` ` `
121
+
122
+ ### Action to publish image
123
+
124
+ This is complex.
125
+
126
+ [Guide here](https://benoitboure.com/securely-access-your-aws-resources-from-github-actions) was very helpful.
127
+
128
+ Actions used:
129
+
130
+ - https://github.com/aws-actions/configure-aws-credentials
131
+ - https://github.com/aws-actions/amazon-ecr-login
You can’t perform that action at this time.
0 commit comments