Some checks are pending
Check Python Version Consistency / Check Python Version (push) Waiting to run
34 lines
1014 B
YAML
34 lines
1014 B
YAML
# NOTE: This is a base/reference template — not the active pipeline.
|
|
# Active pipeline: cloudbuild.yaml (Cloud Build 2nd gen trigger)
|
|
# Do not add new steps here; update cloudbuild.yaml directly.
|
|
# cloudbuild.base.yaml — Bygg og push base-image manuelt
|
|
# Kjøres kun når tunge avhengigheter i requirements.txt endres:
|
|
#
|
|
# gcloud builds submit --config=cloudbuild.base.yaml .
|
|
#
|
|
steps:
|
|
- name: 'gcr.io/cloud-builders/docker'
|
|
id: build-base
|
|
args:
|
|
- 'build'
|
|
- '-f'
|
|
- 'agents/core-logic/Dockerfile.base'
|
|
- '-t'
|
|
- 'us-central1-docker.pkg.dev/${PROJECT_ID}/osvauco-repo/osvauco-base:latest'
|
|
- 'agents/core-logic'
|
|
|
|
- name: 'gcr.io/cloud-builders/docker'
|
|
id: push-base
|
|
waitFor: ['build-base']
|
|
args:
|
|
- 'push'
|
|
- 'us-central1-docker.pkg.dev/${PROJECT_ID}/osvauco-repo/osvauco-base:latest'
|
|
|
|
options:
|
|
logging: CLOUD_LOGGING_ONLY
|
|
machineType: E2_HIGHCPU_8
|
|
|
|
images:
|
|
- 'us-central1-docker.pkg.dev/${PROJECT_ID}/osvauco-repo/osvauco-base:latest'
|
|
|