Skip to content

Commit 17e4aaa

Browse files
committed
build-push-action
1 parent 5d2b0c2 commit 17e4aaa

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
id-token: 'write'
1717

1818
steps:
19-
- name: Checkout
20-
uses: actions/checkout@v4
19+
# - name: Checkout
20+
# uses: actions/checkout@v4
2121

2222
- name: Google Cloud Auth
2323
uses: google-github-actions/auth@v2
@@ -32,7 +32,11 @@ jobs:
3232
run: 'gcloud info'
3333

3434
- name: Build Docker image
35-
run: gcloud builds submit --tag us-south1-docker.pkg.dev/api-tools-451421/runners/daily-update-events .
35+
# run: gcloud builds submit --tag us-south1-docker.pkg.dev/api-tools-451421/runners/daily-update-events .
36+
uses: docker/build-push-action@v3
37+
with:
38+
push: true
39+
tags: us-south1-docker.pkg.dev/api-tools-451421/runners/daily-update-events
3640

3741
- name: Upload to dev job
3842
run: gcloud run jobs deploy daily-update-events-dev --image us-south1-docker.pkg.dev/api-tools-451421/runners/daily-update-events --tasks 1 --max-retries 5 --region us-south1 --project=api-tools-451421

0 commit comments

Comments
 (0)