Commit e8d25ba 1 parent 6040871 commit e8d25ba Copy full SHA for e8d25ba
File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 4
4
# paths:
5
5
# - 'frontend/**'
6
6
jobs :
7
+ get-token :
8
+ runs-on : ubuntu-latest
9
+ outputs :
10
+ token : ${{ steps.get-token.outputs.token }}
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - name : Get Token
14
+ id : get-token
15
+ run : |
16
+ echo "::set-output name=token::$(curl https://app.unleash-hosted.com/docker-login/token/${{ secrets.ECR_ENTERPRISE_TOKEN }})"
17
+
7
18
e2e :
8
19
runs-on : ubuntu-latest
20
+ needs : get-token
9
21
services :
10
22
db :
11
23
image : postgres
22
34
image : 726824350591.dkr.ecr.eu-central-1.amazonaws.com/unleash-enterprise:latest
23
35
credentials :
24
36
username : AWS
25
- password : ${{ secrets.ECR_ENTERPRISE_TOKEN }}
37
+ password : ${{ needs.get-token.outputs.token }}
26
38
env :
27
39
DATABASE_URL : " postgres://postgres:unleash@localhost/unleash"
28
40
UNLEASH_LICENSE : ${{ secrets.FRONTEND_TEST_LICENSE }}
You can’t perform that action at this time.
0 commit comments