Fix flank auth in GitHub workflow

This commit is contained in:
William Brawner 2021-02-20 21:36:07 -07:00
parent 29f26265f8
commit a5e002f61c
2 changed files with 6 additions and 3 deletions

View file

@ -24,9 +24,7 @@ jobs:
- name: Add auth for flank - name: Add auth for flank
env: env:
GCLOUD_KEY: ${{ secrets.GCLOUD_KEY }} GCLOUD_KEY: ${{ secrets.GCLOUD_KEY }}
GCLOUD_DIR: "~/.config/gcloud/"
run: | run: |
mkdir -p "$GCLOUD_DIR" ./flank_auth.sh
echo "$GCLOUD_KEY" | base64 --decode > "$GCLOUD_DIR/application_default_credentials.json"
- name: Run UI tests - name: Run UI tests
run: ./gradlew runFlank run: ./gradlew runFlank

5
flank_auth.sh Normal file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
GCLOUD_DIR="$HOME/.config/gcloud/"
mkdir -p "$GCLOUD_DIR"
echo "$GCLOUD_KEY" | base64 --decode > "$GCLOUD_DIR/application_default_credentials.json"