Skip to content

Commit e8d25ba

Browse files
Exchange token for secret
1 parent 6040871 commit e8d25ba

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/e2e.frontend.yaml

+13-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,20 @@ on:
44
# paths:
55
# - 'frontend/**'
66
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+
718
e2e:
819
runs-on: ubuntu-latest
20+
needs: get-token
921
services:
1022
db:
1123
image: postgres
@@ -22,7 +34,7 @@ jobs:
2234
image: 726824350591.dkr.ecr.eu-central-1.amazonaws.com/unleash-enterprise:latest
2335
credentials:
2436
username: AWS
25-
password: ${{ secrets.ECR_ENTERPRISE_TOKEN }}
37+
password: ${{ needs.get-token.outputs.token }}
2638
env:
2739
DATABASE_URL: "postgres://postgres:unleash@localhost/unleash"
2840
UNLEASH_LICENSE: ${{ secrets.FRONTEND_TEST_LICENSE }}

0 commit comments

Comments
 (0)