aboutsummaryrefslogtreecommitdiff
path: root/pipeline.yml
diff options
context:
space:
mode:
Diffstat (limited to 'pipeline.yml')
-rw-r--r--pipeline.yml43
1 files changed, 39 insertions, 4 deletions
diff --git a/pipeline.yml b/pipeline.yml
index 82691813b..05f4627a7 100644
--- a/pipeline.yml
+++ b/pipeline.yml
@@ -2,10 +2,16 @@ resources:
- name: trackermap-server-git
type: git
source:
- uri: ((git-repo))
+ uri: ((server-git-url))
tag_filter: trackermap-*
fetch_tags: "true"
+ - name: trackermap-branding-git
+ type: git
+ source:
+ uri: ((branding-git-url))
+ branch: main
+
- name: docker-image
type: registry-image
icon: docker
@@ -20,6 +26,34 @@ jobs:
plan:
- get: trackermap-server-git
trigger: true
+
+ - get: trackermap-branding-git
+ trigger: false
+
+ - task: apply-branding
+ config:
+ platform: linux
+ image_resource:
+ type: registry-image
+ source:
+ repository: alpine
+ tag: latest
+ inputs:
+ - name: trackermap-server-git
+ - name: trackermap-branding-git
+ outputs:
+ - name: trackermap-branded
+ path: trackermap-server-git
+ params:
+ BRANDING: ((branding))
+ run:
+ path: sh
+ args:
+ - -c
+ - |
+ cd trackermap-branding-git/
+ ./rebrand.sh "$BRANDING" ../trackermap-server-git
+
- task: build-docker
privileged: true
config:
@@ -30,7 +64,7 @@ jobs:
repository: concourse/oci-build-task
tag: latest
inputs:
- - name: trackermap-server-git
+ - name: trackermap-branded
outputs:
- name: image
run:
@@ -38,12 +72,13 @@ jobs:
args:
- -exc
- |
- cd trackermap-server-git/
+ cd trackermap-branded/
git describe --tags | sed 's/trackermap-//' > ../image/tag
export BUILD_ARG_GIT_COMMIT=$(git rev-parse HEAD)
cd ../
- export CONTEXT=trackermap-server-git
+ export CONTEXT=trackermap-branded
build
+
- put: docker-image
params:
image: image/image.tar