Skip to content

Commit

Permalink
fix(cloudbuild): Adds prometheus-specific cloudbuild file (#33)
Browse files Browse the repository at this point in the history
This adds a build step in order to append 'prometheus-client' to the requirements.txt file prior to building the container.
  • Loading branch information
Travis Tomsu authored Mar 2, 2017
1 parent e54002c commit b30460c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cloudbuild-prometheus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
steps:
- name: 'debian:jessie'
dir: spinnaker-monitoring-daemon
entrypoint: "bash"
args: ["-c", "echo 'prometheus-client' >> requirements.txt"]
- name: 'gcr.io/cloud-builders/docker'
dir: spinnaker-monitoring-daemon
args: ["build", "-t", "gcr.io/$PROJECT_ID/$REPO_NAME:$COMMIT_SHA", "-t", "gcr.io/$PROJECT_ID/$REPO_NAME:latest", "-f", "Dockerfile", "."]
images:
- 'gcr.io/$PROJECT_ID/$REPO_NAME:$COMMIT_SHA'
- 'gcr.io/$PROJECT_ID/$REPO_NAME:latest'

0 comments on commit b30460c

Please sign in to comment.