resources: - name: trackermap-server-git type: git source: 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 source: repository: ((registry-repo)) username: ((registry-username)) password: ((registry-password)) tag: latest jobs: - name: build-and-publish 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: platform: linux image_resource: type: registry-image source: repository: concourse/oci-build-task tag: latest inputs: - name: trackermap-branded outputs: - name: image run: path: sh args: - -exc - | cd trackermap-branded/ git describe --tags | sed 's/trackermap-//' > ../image/tag export BUILD_ARG_GIT_COMMIT=$(git rev-parse HEAD) cd ../ export CONTEXT=trackermap-branded build - put: docker-image params: image: image/image.tar additional_tags: image/tag