Skip to content

Commit

Permalink
Finalize BuildKite build & release scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arik Kfir committed Nov 1, 2017
1 parent 7e2f4eb commit 4ec5720
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .buildkite/build.pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
steps:

- label: Docker image
- label: Build Docker image
command:
- TAG=${BUILDKITE_TAG:-${BUILDKITE_COMMIT}}
- gcloud docker -- build --tag gcr.io/infolinks-gcr/slugger:${TAG} .
- gcloud docker -- push gcr.io/infolinks-gcr/slugger:${TAG}
- gcloud docker -- build --tag gcr.io/infolinks-gcr/slugger:${BUILDKITE_COMMIT} .
- gcloud docker -- push gcr.io/infolinks-gcr/slugger:${BUILDKITE_COMMIT}
9 changes: 9 additions & 0 deletions .buildkite/release.pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
steps:

- label: Build versioned Docker image
command:
- gcloud docker -- pull gcr.io/infolinks-gcr/slugger:${BUILDKITE_COMMIT}
- gcloud docker -- tag gcr.io/infolinks-gcr/slugger:${BUILDKITE_COMMIT} infolinks/slugger:${VERSION}
- gcloud docker -- push infolinks/slugger:${VERSION}
- gcloud docker -- tag gcr.io/infolinks-gcr/slugger:${BUILDKITE_COMMIT} infolinks/slugger:latest
- gcloud docker -- push infolinks/slugger:latest

0 comments on commit 4ec5720

Please sign in to comment.