-
Notifications
You must be signed in to change notification settings - Fork 28
/
cloudbuild.yaml
24 lines (23 loc) · 1.06 KB
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# cloudbuild.yaml
# 23.1.24
# Riverbed-Community-Toolkit (https://github.com/riverbed/Riverbed-Community-Toolkit)
#
# Usage:
#
# gcloud builds submit --config cloudbuild.yaml --substitutions _APM_PACKAGE_GSUTIL_URI={_APM_PACKAGE_GSUTIL_URI},_REGION={_REGION},_REPOSITORY={REPOSITORY},_IMAGE_NAME={IMAGE_NAME},_TAG_NAME={TAG_NAME}
#
# Example
#
# gcloud builds submit --config cloudbuild.yaml --substitutions _APM_PACKAGE_GSUTIL_URI=gs://my_new_bucket/appinternals_agent_latest_linux.gz
steps:
- name: 'gcr.io/cloud-builders/gsutil'
args: ['cp', '${_APM_PACKAGE_GSUTIL_URI}', './aternity-apm-jida-linux.zip']
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', '${_REGION}-docker.pkg.dev/${PROJECT_ID}/${_REPOSITORY}/${_IMAGE_NAME}', '.']
- name: 'gcr.io/cloud-builders/docker'
args: ['push', '${_REGION}-docker.pkg.dev/${PROJECT_ID}/${_REPOSITORY}/${_IMAGE_NAME}']
substitutions:
_APM_PACKAGE_GSUTIL_URI: gs://my_bucket/aternity-apm-jida-linux-12.19.0_BL516.zip
_REGION: europe-west9
_REPOSITORY: apm
_IMAGE_NAME: cookbook-233