Skip to content

Commit

Permalink
auth check
Browse files Browse the repository at this point in the history
  • Loading branch information
mhigbyflowers committed Sep 17, 2024
1 parent 94d19b5 commit ebb070c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,16 @@ jobs:
uses: google-github-actions/setup-gcloud@v1
with:
project_id: ${{ secrets.GCP_PROJECT_ID }} # Ensure this secret is also set
- name: Set gcloud project
run: gcloud config set project ${{ secrets.GCP_PROJECT_ID }}

- name: Activate service account
run: gcloud auth activate-service-account --key-file=${{ secrets.GCP_CREDENTIALS }}

# Step 4: Build and push Docker image to Google Container Registry (GCR)
- name: Build and push Docker image
run: |
IMAGE=gcr.io/map-dragon-dev/vmt:$GITHUB_SHA
IMAGE=gcr.io/${{ secrets.GCP_PROJECT_ID }}/vmt:$GITHUB_SHA
docker build -t $IMAGE .
docker push $IMAGE
Expand Down

0 comments on commit ebb070c

Please sign in to comment.