Skip to content

Commit

Permalink
add cloudbuild.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
abaldeweg authored Dec 29, 2024
1 parent 20ca7c0 commit 4ed4b66
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions static/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
steps:
- name: gcr.io/cloud-builders/docker
args:
- build
- "--no-cache"
- "-t"
- "$_GCR_HOSTNAME/$PROJECT_ID/$REPO_NAME/$_SERVICE_NAME:$COMMIT_SHA"
- "-f"
- ./static/Dockerfile
- ./static
id: Build
- name: gcr.io/cloud-builders/docker
args:
- push
- "$_GCR_HOSTNAME/$PROJECT_ID/$REPO_NAME/$_SERVICE_NAME:$COMMIT_SHA"
id: Push
images:
- "$_GCR_HOSTNAME/$PROJECT_ID/$REPO_NAME/$_SERVICE_NAME:$COMMIT_SHA"
options:
substitutionOption: ALLOW_LOOSE
substitutions:
_GCR_HOSTNAME: eu.gcr.io
tags:
- $_SERVICE_NAME

0 comments on commit 4ed4b66

Please sign in to comment.