Created
January 14, 2019 15:37
-
-
Save bstick12/52bf82ebd90ee6c1fe23a1e110da6577 to your computer and use it in GitHub Desktop.
GoFlake Concourse CI pipeline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
resources: | |
- name: git-goflake | |
type: git | |
source: | |
uri: git@github.com:bstick12/goflake.git | |
branch: master | |
private_key: ((git-ssh-key.private_key)) | |
resource_types: | |
- name: gcs | |
type: docker-image | |
source: | |
repository: frodenas/gcs-resource | |
jobs: | |
- name: golang-builder | |
plan: | |
- get: git-goflake | |
trigger: true | |
- task: build-go | |
config: | |
platform: linux | |
image_resource: | |
type: docker-image | |
source: | |
repository: golang | |
run: | |
path: sh | |
args: | |
- -c | |
- | | |
#!/bin/bash | |
# Link to the module cache | |
mkdir -p /go/pkg/ | |
ln -s $PWD/.mod /go/pkg/mod | |
# Vendor the modules and build | |
cd goflake | |
go build | |
inputs: | |
- name: git-goflake | |
path: goflake | |
caches: | |
- path: .mod |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment