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
on: | |
push: | |
branches: [main] | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: setup go toolchain | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: build | |
run: ./scripts/buildprod.sh | |
- id: 'auth' | |
uses: 'google-github-actions/auth@v2' | |
with: | |
credentials_json: '${{ secrets.GCP_JSON_KEY }}' | |
- name: 'Set up Cloud SDK' | |
uses: 'google-github-actions/setup-gcloud@v2' | |
- name: 'Use gcloud CLI' | |
run: 'gcloud info' | |
- name: 'build and push to gcp artifact' | |
run: 'gcloud builds submit --tag us-central1-docker.pkg.dev/notely-434019/notely-ar-repo/notely:latest .' | |