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
diff --git a/templates/pipeline/node/pipeline/pipeline.template.yml b/templates/pipeline/node/pipeline/pipeline.template.yml | |
index cfa9704..faf5fd3 100644 | |
--- a/templates/pipeline/node/pipeline/pipeline.template.yml | |
+++ b/templates/pipeline/node/pipeline/pipeline.template.yml | |
@@ -3,6 +3,7 @@ resource_types: | |
[[ template "resource-type-helm" . ]] | |
resources: | |
+[[ template "resource-buildy" . ]] | |
[[ template "resource-app" . ]] | |
[[ template "resource-bff-image-staging" . ]] | |
[[ template "resource-bff-image-production" . ]] | |
@@ -37,6 +38,14 @@ groups: | |
#### Resource Templates #### | |
+[[- define "resource-buildy" -]] | |
+- name: buildy | |
+ type: git | |
+ source: | |
+ uri: https://((github-token))@github.com/opendoor-labs/buildy.git | |
+ branch: cm/feat/build-on-concourse | |
+[[- end -]] | |
+ | |
[[- define "resource-app" -]] | |
- name: app | |
type: git | |
@@ -95,7 +104,7 @@ groups: | |
type: docker-image | |
source: | |
repository: opendoor/odie | |
- tag: 0.3 | |
+ tag: cm-test | |
username: ((dockerhub-username)) | |
password: ((dockerhub-password)) | |
[[- end -]] | |
@@ -141,6 +150,7 @@ groups: | |
- name: build-release-images | |
plan: | |
- in_parallel: | |
+ - get: buildy | |
- get: app | |
trigger: true | |
- get: odie | |
@@ -155,6 +165,7 @@ groups: | |
platform: linux | |
inputs: | |
- name: app | |
+ - name: buildy | |
outputs: | |
- name: build-output | |
- name: dockerfiles | |
@@ -177,7 +188,8 @@ groups: | |
--name [[ .AppName ]] \ | |
--stage "staging" \ | |
--version "$VERSION" \ | |
- --out-dir "$BUILD_OUT" | |
+ --out-dir "$BUILD_OUT" \ | |
+ --templates "${CURR_DIR}/buildy/templates/build" | |
cd "$CURR_DIR"; | |
tar -cvzf build-output/release-"$VERSION".tgz -C build-output/build-out chart | |
mv build-output/build-out/bff dockerfiles/ | |
@@ -190,6 +202,7 @@ groups: | |
platform: linux | |
inputs: | |
- name: app | |
+ - name: buildy | |
outputs: | |
- name: build-output | |
- name: dockerfiles | |
@@ -212,7 +225,8 @@ groups: | |
--name [[ .AppName ]] \ | |
--stage "production" \ | |
--version "$VERSION" \ | |
- --out-dir "$BUILD_OUT" | |
+ --out-dir "$BUILD_OUT" \ | |
+ --templates "${CURR_DIR}/buildy/templates/build" | |
cd "$CURR_DIR"; | |
tar -cvzf build-output/release-"$VERSION".tgz -C build-output/build-out chart | |
mv build-output/build-out/bff dockerfiles/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment