Skip to content

Commit b5cebb2

Browse files
committed
fixup! chore(ci): Build docker images before-hand
1 parent 691c3cd commit b5cebb2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/actions.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ jobs:
4242
exit 1;
4343
}
4444
45+
- name: Decrypt Service Account Key File
46+
working-directory: ./
47+
run: |
48+
openssl enc -aes-256-cbc -d -K "$OPENSSL_KEY" -iv "$OPENSSL_IV" -in ci-mapswipe-firebase-adminsdk-80fzw-ebce84bd5b.json.enc -out mapswipe_workers/serviceAccountKey.json
49+
env:
50+
OPENSSL_PASSPHRASE: ${{ secrets.OPENSSL_PASSPHRASE }}
51+
OPENSSL_KEY: ${{ secrets.OPENSSL_KEY }}
52+
OPENSSL_IV: ${{ secrets.OPENSSL_IV }}
53+
4554
- name: Build docker images
4655
run: |
4756
# Create a mock file for wal-g setup
@@ -64,15 +73,6 @@ jobs:
6473
run: |
6574
docker compose run --rm firebase_deploy sh -c "firebase use $FIREBASE_DB && firebase deploy --token $FIREBASE_TOKEN --only database"
6675
67-
- name: Decrypt Service Account Key File
68-
working-directory: ./
69-
run: |
70-
openssl enc -aes-256-cbc -d -K "$OPENSSL_KEY" -iv "$OPENSSL_IV" -in ci-mapswipe-firebase-adminsdk-80fzw-ebce84bd5b.json.enc -out mapswipe_workers/serviceAccountKey.json
71-
env:
72-
OPENSSL_PASSPHRASE: ${{ secrets.OPENSSL_PASSPHRASE }}
73-
OPENSSL_KEY: ${{ secrets.OPENSSL_KEY }}
74-
OPENSSL_IV: ${{ secrets.OPENSSL_IV }}
75-
7676
- name: Run Tests
7777
working-directory: ./mapswipe_workers
7878
env:

0 commit comments

Comments
 (0)