Skip to content

Instantly share code, notes, and snippets.

@bstick12
Created January 14, 2019 15:37
Show Gist options
  • Save bstick12/52bf82ebd90ee6c1fe23a1e110da6577 to your computer and use it in GitHub Desktop.
Save bstick12/52bf82ebd90ee6c1fe23a1e110da6577 to your computer and use it in GitHub Desktop.
GoFlake Concourse CI pipeline
---
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