forked from ForgeRock/forgeops
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
44 lines (43 loc) · 1.71 KB
/
cloudbuild.yaml
File metadata and controls
44 lines (43 loc) · 1.71 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
# Google Cloud builder steps to build our helm charts and docker images on gcr.io.
# Deprecated and will soon be removed!!! See docker/cloudbuild.yaml
# options:
# machineType: 'N1_HIGHCPU_8'
timeout: 3500s
steps:
# We are not pushing charts to the gcs chart repo anymore. Deployment should be from source.
# This will be revisted in the helm 3 timeframe.
# Get the helm command.
# - name: gcr.io/cloud-builders/wget
# args: ['-q','-O', 'helm.tar.gz', 'https://storage.googleapis.com/kubernetes-helm/helm-v2.9.0-linux-amd64.tar.gz']
# # Build helm charts and push to gs bucket.
# - name: 'gcr.io/cloud-builders/gcloud'
# entrypoint: ./etc/cloud-build-push-charts.sh
# build gcr.io
- name: 'gcr.io/cloud-builders/docker'
dir: 'docker'
entrypoint: './build.sh'
# -g tags with gcr.io, -n cloudbuild sets the docker network to cloudbuild so docker builds can access gsutil commands.
args: ['-g', '-n', 'cloudbuild']
env:
- 'API_KEY=${_ARTIFACTORY_API_KEY}'
- name: 'gcr.io/cloud-builders/docker'
dir: 'docker'
# Run the script to build the docker images with options -a (authenticate) and -p (push)
entrypoint: './build.sh'
args: ['-a', '-p']
env:
# Set _DOCKER_USERNAME and _DOCKER_PASSWORD in the cloudbuild
# console https://console.cloud.google.com/gcr/triggers?project=engineering-devops
# These are the credentials needed to push images to your private docker registry.
- 'DOCKER_USER=${_DOCKER_USER}'
- 'DOCKER_PASSWORD=${_DOCKER_PASSWORD}'
images:
- 'gcr.io/$PROJECT_ID/openam'
- 'gcr.io/$PROJECT_ID/amster'
- 'gcr.io/$PROJECT_ID/util'
- 'gcr.io/$PROJECT_ID/java'
- 'gcr.io/$PROJECT_ID/git'
- 'gcr.io/$PROJECT_ID/gatling'
- 'gcr.io/$PROJECT_ID/nginx-agent'
- 'gcr.io/$PROJECT_ID/apache-agent'
tags: ['build']