Skip to content

Commit

Permalink
Explicit Cloud Build Config (#130)
Browse files Browse the repository at this point in the history
Config is similar to the agent repository.

Let's add an additional docker image location in gcr.io for easier integration with GCP service like Cloud Run.
  • Loading branch information
fkorotkov authored Oct 12, 2020
1 parent 28e3ece commit 8e480fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
FROM goreleaser/goreleaser:latest as builder

ENV GORELEASER_CURRENT_TAG=latest

WORKDIR /build
ADD . /build

RUN goreleaser --skip-publish
RUN goreleaser build --snapshot

FROM alpine:latest
LABEL org.opencontainers.image.source=https://github.com/cirruslabs/cirrus-cli/
Expand Down
4 changes: 4 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/cirrus-ci-community/cirrus-cli:$TAG_NAME', '-t', 'gcr.io/cirrus-ci-community/cirrus-cli:latest', '.']
images: ['gcr.io/cirrus-ci-community/cirrus-cli:$TAG_NAME', 'gcr.io/cirrus-ci-community/cirrus-cli:latest']

0 comments on commit 8e480fb

Please sign in to comment.