Skip to content

Commit

Permalink
populate a dockerignore file on the fly
Browse files Browse the repository at this point in the history
  • Loading branch information
nwaughachukwuma committed Nov 4, 2024
1 parent e8e993d commit 76c9d68
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/deploy_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,15 @@ jobs:
- uses: google-github-actions/setup-gcloud@v2
- run: gcloud config set app/cloud_build_timeout 300

- run: |
touch .dockerignore
echo "server/**" >> .dockerignore
- id: deploy
uses: google-github-actions/deploy-cloudrun@v2
with:
service: ${{ env.SERVICE }}
source: ./app
source: ./
tag: ${{ needs.prepare.outputs.VERSION }}
no_traffic: true
timeout: "5m"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/deploy_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,16 @@ jobs:
- uses: google-github-actions/setup-gcloud@v2
- run: gcloud config set app/cloud_build_timeout 300

- run: |
touch .dockerignore
echo "app/**" >> .dockerignore
- name: Deploy to Cloud Run
id: deploy
uses: google-github-actions/deploy-cloudrun@v2
with:
service: ${{ env.SERVICE }}
source: ./server
source: ./
tag: ${{ env.VERSION }}
no_traffic: true
timeout: "5m"
Expand Down

0 comments on commit 76c9d68

Please sign in to comment.