We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ad14a1 commit a8dd5e0Copy full SHA for a8dd5e0
.github/workflows/deploy-docker.yml
@@ -15,13 +15,15 @@ jobs:
15
- name: Check out repository
16
uses: actions/checkout@v3
17
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
+ run: |
+ # Use printf to preserve the formatting and newlines
21
+ printf "%s" "${{ secrets.GOOGLE_SERVICES_JSON }}" > google-services.json
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
+ # Similarly, create the .env file with proper formatting
26
+ printf "%s" "${{ secrets.ENV_FILE_CONTENT }}" > .env
27
28
- name: Build Docker image
29
run: |
0 commit comments