Skip to content

Commit

Permalink
ci: fix perms
Browse files Browse the repository at this point in the history
  • Loading branch information
ammario committed Aug 21, 2024
1 parent 937f3f0 commit 1b838c2
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ on:
branches:
- main

# This ensures only one deployment job runs at a time
# If a second deployment is triggered, it will cancel the first one
concurrency:
group: deploy-to-cloud-run
cancel-in-progress: true

env:
PROJECT_ID: coder-labeler

Expand All @@ -19,13 +25,16 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
go-version: "1.21" # Adjust this to your Go version

- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v1
- name: Google Auth
id: auth
uses: "google-github-actions/auth@v1"
with:
project_id: coder-labeler
service_account_key: ${{ secrets.GCP_SA_KEY }}
credentials_json: "${{ secrets.GCP_SA_KEY }}"

- name: Set up Cloud SDK
uses: "google-github-actions/setup-gcloud@v1"

- name: Configure Docker
run: gcloud auth configure-docker us-central1-docker.pkg.dev
Expand Down

0 comments on commit 1b838c2

Please sign in to comment.