Skip to content

Commit 8ad14a1

Browse files
Added repo secrets for .env file + google-services.json file.
1 parent c29dc16 commit 8ad14a1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/deploy-docker.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ jobs:
1515
- name: Check out repository
1616
uses: actions/checkout@v3
1717

18+
# Create the secret file "google-services.json" from the repo secret
19+
- name: Create google-services.json
20+
run: echo "${{ secrets.GOOGLE_SERVICES_JSON }}" > google-services.json
21+
22+
# Create a .env file from a repo secret (if needed)
23+
- name: Create .env file
24+
run: echo "${{ secrets.ENV_FILE_CONTENT }}" > .env
25+
1826
- name: Build Docker image
1927
run: |
2028
docker build -t codebuilder-webapp:latest .

0 commit comments

Comments
 (0)