update repository references and improve script handling

This commit is contained in:
2025-03-19 20:36:36 +01:00
parent 51b0252b0e
commit 1d90749486
160 changed files with 14361 additions and 18 deletions

View File

@@ -0,0 +1,22 @@
# How to use:
# gcloud config set project hassio-drive-backup
# gcloud builds submit --config cloudbuild-server.yaml
#steps:
#- name: 'gcr.io/cloud-builders/docker'
# args: [ 'build', '-f', 'Dockerfile-server', '-t', 'gcr.io/$PROJECT_ID/authserver', '.' ]
#images:
#- 'gcr.io/$PROJECT_ID/authserver'
steps:
# Build the container image
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-f', 'Dockerfile-server', '-t', 'gcr.io/$PROJECT_ID/${_SERVICE_NAME}:${_VERSION}', '.']
# Push the container image to Container Registry
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/${_SERVICE_NAME}:${_VERSION}']
substitutions:
_SERVICE_NAME: "authserver-dev" # default value
_VERSION: "test-deployment" # default value
images:
- 'gcr.io/$PROJECT_ID/${_SERVICE_NAME}:${_VERSION}'