From dddfc9e028f1401b977f4843d083a1b81ebd0d18 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Wed, 14 Jun 2023 20:55:42 +0200 Subject: [PATCH] use semantic version for image --- pipeline.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/pipeline.yml b/pipeline.yml index a311b40..beec822 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -4,7 +4,7 @@ resource_types: type: registry-image source: repository: git.pim.kunis.nl/pim/concourse-apprise-notifier - tag: 1.1 + tag: latest resources: - name: site-repo @@ -26,6 +26,16 @@ resources: host: https://apprise.pim.kunis.nl:444 key: concourse icon: bell +- name: version + type: semver + source: + driver: git + initial_version: "1.1.0" + uri: ssh://git@git.pim.kunis.nl:56287/pim/static.git + branch: version + file: version + private_key: {{private_key}} + icon: numberic notify-failed: ¬ify-failed put: apprise-notification @@ -87,11 +97,18 @@ jobs: ls image on_failure: << : *notify-failed + - get: version + params: + bump: minor - put: site-registry-image params: image: image/image.tar + additional_tags: version/version on_failure: << : *notify-failed + - put: version + params: + file: version/version - name: deploy-static-website plan: - get: site-registry-image