Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
Add deployment workflow 3
Browse files Browse the repository at this point in the history
  • Loading branch information
HansTM committed Jun 14, 2024
1 parent 684ab23 commit c8bf9d5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,23 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Put Service Accounts key into a file
run: |
echo '${{ secrets.GCP_SA_KEY }}' > /tmp/gcp_sa_key.json
- name: Authenticate with Google Cloud
uses: google-github-actions/auth@v2
with:
credentials_json: /tmp/gcp_sa_key.json

- name: Set up Google Cloud SDK
uses: google-github-actions/setup-gcloud@v2
with:
service_account_key: ${{ secrets.GCP_SA_KEY }}
project_id: c241-ps478

- name: Download models
run: |
gsutil cp -r gs://c241-ps478/models/ models/
gsutil cp -r gs://waterwise/models/ models/
- name: Build Docker image
uses: docker/build-push-action@v5
Expand Down

0 comments on commit c8bf9d5

Please sign in to comment.