aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2024-04-20 13:09:01 -0600
committerIván Ávalos <avalos@disroot.org>2024-04-20 13:09:01 -0600
commit4ceb39ad76b9eb3c0ebf16791475fd699912f621 (patch)
treeb823eda634f6759fdd44a140509b677b8934f1a3
parent34f8108357174cb55fa7bb894a46dbf136ba6d23 (diff)
downloadtrackermap-server-4ceb39ad76b9eb3c0ebf16791475fd699912f621.tar.gz
trackermap-server-4ceb39ad76b9eb3c0ebf16791475fd699912f621.tar.bz2
trackermap-server-4ceb39ad76b9eb3c0ebf16791475fd699912f621.zip
Add branding to pipeline
-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