use semantic version for image

This commit is contained in:
Pim Kunis 2023-06-14 20:55:42 +02:00
parent 6a1b772abd
commit dddfc9e028

View file

@ -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: &notify-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