diff --git a/.github/workflows/deploy_dev.yml b/.github/workflows/deploy_dev.yml index 8f3baa4..70a0c77 100644 --- a/.github/workflows/deploy_dev.yml +++ b/.github/workflows/deploy_dev.yml @@ -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