update pipeline to build the golang-builder image
@@ -64,6 +64,7 @@ groups:
- name: images
jobs:
- unit-image
+ - golang-builder-image
- name: publish
jobs:
@@ -106,6 +107,30 @@ jobs:
- put: unit-image
params: {image: image/image.tar}
+- name: golang-builder-image
+ public: true
+ serial: true
+ plan:
+ - aggregate:
+ - get: concourse
+ resource: golang-builder-dockerfile
+ trigger: true
+ - get: builder
+ - task: build
+ image: builder
+ privileged: true
+ config:
+ platform: linux
+ params:
+ REPOSITORY: concourse/golang-builder
+ CONTEXT: concourse/ci/dockerfiles/golang-builder
+ inputs: [{name: concourse}]
+ outputs: [{name: image}]
+ caches: [{path: cache}]
+ run: {path: build}
+ - put: golang-builder-image
+ params: {image: image/image.tar}
+
- name: unit
public: true
serial: true
@@ -1033,6 +1058,13 @@ resources:
branch: master
paths: [ci/dockerfiles/unit]
+- name: golang-builder-dockerfile
+ type: git
+ source:
+ uri: https://github.com/concourse/concourse.git
+ branch: master
+ paths: [ci/dockerfiles/golang-builder]
+
- name: dev-image
type: registry-image
source:
@@ -1061,6 +1093,13 @@ resources:
username: ((docker.username))
password: ((docker.password))
+- name: golang-builder-image
+ type: registry-image
+ source:
+ repository: concourse/golang-builder
+ username: ((docker.username))
+ password: ((docker.password))
+
- name: postgres-image
type: registry-image
source: {repository: postgres}
