fix github actions #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub Actions | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
deploy: | ||
permissions: | ||
contents: 'read' | ||
id-token: 'write' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Google Auth | ||
id: auth | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
token_format: access_token | ||
workload_identity_provider: projects/609385848802/locations/global/workloadIdentityPools/github/providers/github | ||
service_account: github-actions@sfujiwara.iam.gserviceaccount.com | ||
# - name: Deploy | ||
# run: make cloud-build | ||
name: Login to GAR | ||
Check failure on line 30 in .github/workflows/config.yaml GitHub Actions / GitHub ActionsInvalid workflow file
|
||
uses: docker/login-action@v3 | ||
with: | ||
registry: us-central1-docker.pkg.dev | ||
username: oauth2accesstoken | ||
password: ${{ steps.auth.outputs.access_token }} | ||
- name: Build and Push Docker image | ||
run: make docker-build && make docker-push | ||
- name: Deploy to Cloud Run | ||
run: make cloud-run-deploy |