File tree Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Original file line number Diff line number Diff line change 26
26
env :
27
27
TEST_MODE : " 1"
28
28
DEV_MODE : " 1"
29
- build-and-push-ecr :
30
- runs-on : ubuntu-latest
31
- needs : [run-tests]
32
- permissions :
33
- id-token : write
34
- contents : read
35
- steps :
36
- - uses : actions/checkout@v2
37
- -
uses :
aws-actions/[email protected]
38
- with :
39
- role-to-assume : arn:aws:iam::192824654885:role/github-actions-ecr
40
- aws-region : eu-west-2
41
- - uses : docker/login-action@v2
42
- with :
43
- registry : public.ecr.aws
44
- env :
45
- AWS_REGION : us-east-1
46
- - run : docker context create builders
47
- - uses : docker/setup-buildx-action@v2
48
- with :
49
- version : latest
50
- endpoint : builders
51
- - uses : haya14busa/action-cond@v1
52
- id : image_tag
53
- with :
54
- cond : ${{ startsWith(github.ref, 'refs/tags/') }}
55
- if_true : ${{ github.ref_name }}
56
- if_false : ${{ github.sha }}
57
- - uses : docker/build-push-action@v2
58
- with :
59
- push : true
60
- tags : public.ecr.aws/pyth-network/${{ github.event.repository.name }}:${{ steps.image_tag.outputs.value }}
You can’t perform that action at this time.
0 commit comments