File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 4
4
workflow_dispatch :
5
5
inputs :
6
6
version :
7
- description : " Image tag"
7
+ description : ' Image tag'
8
8
required : true
9
9
type : string
10
10
@@ -15,11 +15,14 @@ jobs:
15
15
contents : read
16
16
packages : write
17
17
steps :
18
+ - name : configure aws credentials
19
+ uses : aws-actions/configure-aws-credentials@v1
20
+ with :
21
+ role-to-assume : ${{ secrets.PROD_AWS_ROLE }}
22
+ aws-region : us-east-1
18
23
- uses : docker/login-action@v2
19
24
with :
20
25
registry : public.ecr.aws
21
- username : ${{ secrets.PROD_ACCESS_KEY_ID }}
22
- password : ${{ secrets.PROD_SECRET_ACCESS_KEY }}
23
26
- uses : docker/login-action@v2
24
27
with :
25
28
registry : ghcr.io
Original file line number Diff line number Diff line change 10
10
semantic-release :
11
11
name : Release
12
12
runs-on : ubuntu-20.04
13
+ permissions :
14
+ id-token : write # This is required for requesting the JWT from AWS
15
+ contents : read # This is required for actions/checkout
13
16
outputs :
14
17
new-release-published : ${{ steps.semantic-release.outputs.new_release_published }}
15
18
new-release-version : ${{ steps.semantic-release.outputs.new_release_version }}
18
21
19
22
- uses : actions/setup-node@v3
20
23
with :
21
- node-version : " 16"
24
+ node-version : ' 16'
25
+
26
+ - name : configure aws credentials
27
+ uses : aws-actions/configure-aws-credentials@v1
28
+ with :
29
+ role-to-assume : ${{ secrets.PROD_AWS_ROLE }}
30
+ aws-region : us-east-1
22
31
23
32
- run : |
24
33
npm clean-install
43
52
44
53
- uses : actions/setup-node@v3
45
54
with :
46
- node-version : " 16 "
55
+ node-version : ' 16 '
47
56
48
57
- name : Prepare release
49
58
run : |
96
105
uses : docker/login-action@v2
97
106
with :
98
107
registry : public.ecr.aws
99
- username : ${{ secrets.PROD_ACCESS_KEY_ID }}
100
- password : ${{ secrets.PROD_SECRET_ACCESS_KEY }}
101
108
102
109
- name : Login to GHCR
103
110
uses : docker/login-action@v2
You can’t perform that action at this time.
0 commit comments