diff options
author | Iván Ávalos <avalos@disroot.org> | 2024-03-09 23:52:57 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2024-03-09 23:52:57 -0600 |
commit | cbdc38bfe04e95658d9308b5b5705f440d8508ff (patch) | |
tree | bedd6bf6d3ac73370f2c1690e5b3eeada9b26669 /pipeline.yml | |
parent | acff8c4dce2f46b7907e6e19118dbc0c9c8e90f1 (diff) | |
download | trackermap-server-cbdc38bfe04e95658d9308b5b5705f440d8508ff.tar.gz trackermap-server-cbdc38bfe04e95658d9308b5b5705f440d8508ff.tar.bz2 trackermap-server-cbdc38bfe04e95658d9308b5b5705f440d8508ff.zip |
Add Concourse pipeline and improve Dockerfiletrackermap-v0.1.3
Diffstat (limited to 'pipeline.yml')
-rw-r--r-- | pipeline.yml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/pipeline.yml b/pipeline.yml new file mode 100644 index 000000000..d588f100a --- /dev/null +++ b/pipeline.yml @@ -0,0 +1,49 @@ +resources: + - name: trackermap-server-git + type: git + source: + uri: ((git-repo)) + tag_filter: trackermap-* + fetch_tags: "true" + + - name: docker-image + type: registry-image + icon: docker + source: + repository: ((registry-repo)) + username: ((registry-username)) + password: ((registry-password)) + +jobs: + - name: build-and-publish + plan: + - get: trackermap-server-git + trigger: true + - task: build-docker + privileged: true + config: + platform: linux + image_resource: + type: registry-image + source: + repository: concourse/oci-build-task + tag: latest + inputs: + - name: trackermap-server-git + outputs: + - name: image + run: + path: sh + args: + - -exc + - | + cd trackermap-server-git/ + git describe --tags | sed 's/trackermap-//' > ../image/tag + export BUILD_ARG_GIT_COMMIT=$(git rev-parse HEAD) + cd ../ + export CONTEXT=trackermap-server-git + build + - put: docker-image + params: + image: image/image.tar + additional_tags: image/tag |