forked from ForgeRock/forgeops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild-snapshot.yaml
31 lines (30 loc) · 1.05 KB
/
cloudbuild-snapshot.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
25
26
27
28
29
30
31
# Cloudbuild pipeline for development. This builds snapshot images to gcr.io
steps:
- name: 'gcr.io/cloud-builders/wget'
# Run dl.sh download script with options to use wget (-w) and fetch snapshots (-s).
entrypoint: './dl.sh'
args: ['-w', '-s']
dir: 'docker'
env:
# - 'BUILD_ID=$BUILD_ID'
# - 'PROJECT=$PROJECT_ID'
# - 'REV=$REVISION_ID'
# - 'BRANCH_NAME=$BRANCH_NAME'
# - 'REPO_NAME=$REPO_NAME'
# - 'TAG_NAME=$TAG_NAME'
# Set the _API_KEY in the cloudbuild console https://console.cloud.google.com/gcr/triggers?project=engineering-devops
# This is the API key to pull images from the ForgeRock Artifactory repository.
- 'API_KEY=${_ARTIFACTORY_API_KEY}'
- name: 'gcr.io/cloud-builders/docker'
dir: 'docker'
# Run the script to build all the docker images. Tag with the gcr.io project (-g option)
entrypoint: './build.sh'
args: ['-g', '-t', 'latest']
env:
- 'API_KEY=${_API_KEY}'
images:
- 'gcr.io/$PROJECT_ID/opendj'
- 'gcr.io/$PROJECT_ID/openidm'
- 'gcr.io/$PROJECT_ID/openam'
- 'gcr.io/$PROJECT_ID/amster'
tags: ['build', 'snapshot']