Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
slepp22 authored Apr 27, 2024
1 parent 2101662 commit 4fb2aab
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ jobs:
docker tag sleppp/inventory-backend gcr.io/inventory-database-420916/inventory-backend
docker push gcr.io/inventory-database-420916/inventory-backend:latest
- name: Set up Google Cloud SDK
uses: GoogleCloudPlatform/github-actions/[email protected]
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true
- name: Authenticate with Google Cloud
run: |
gcloud auth activate-service-account --key-file=service-account-key.json
gcloud config set project ${{ secrets.inventory-database-420916 }}
- name: Deploy to Cloud Run
run: |
Expand Down

0 comments on commit 4fb2aab

Please sign in to comment.