image push test
This commit is contained in:
22
.github/workflows/cd.yml
vendored
22
.github/workflows/cd.yml
vendored
@@ -6,10 +6,27 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
permissions:
|
||||||
|
contents: 'read'
|
||||||
|
id-token: 'write'
|
||||||
|
|
||||||
name: Deploy
|
name: Deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- id: 'auth'
|
||||||
|
uses: 'google-github-actions/auth@v2'
|
||||||
|
with:
|
||||||
|
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
|
||||||
|
|
||||||
|
- name: 'Set up Cloud SDK'
|
||||||
|
uses: 'google-github-actions/setup-gcloud@v2'
|
||||||
|
with:
|
||||||
|
version: '>= 363.0.0'
|
||||||
|
|
||||||
|
- name: 'Use gcloud CLI'
|
||||||
|
run: 'gcloud info'
|
||||||
|
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -19,4 +36,7 @@ jobs:
|
|||||||
go-version: "1.23.0"
|
go-version: "1.23.0"
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: scripts/buildprod.sh
|
run: scripts/buildprod.sh
|
||||||
|
|
||||||
|
- name: Push to Google
|
||||||
|
run: gcloud builds submit --tag us-central1-docker.pkg.dev/notely-453912/notely-ar-repo/notely:latest .
|
||||||
Reference in New Issue
Block a user