use semantic version for image
This commit is contained in:
parent
6a1b772abd
commit
dddfc9e028
1 changed files with 18 additions and 1 deletions
19
pipeline.yml
19
pipeline.yml
|
@ -4,7 +4,7 @@ resource_types:
|
||||||
type: registry-image
|
type: registry-image
|
||||||
source:
|
source:
|
||||||
repository: git.pim.kunis.nl/pim/concourse-apprise-notifier
|
repository: git.pim.kunis.nl/pim/concourse-apprise-notifier
|
||||||
tag: 1.1
|
tag: latest
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- name: site-repo
|
- name: site-repo
|
||||||
|
@ -26,6 +26,16 @@ resources:
|
||||||
host: https://apprise.pim.kunis.nl:444
|
host: https://apprise.pim.kunis.nl:444
|
||||||
key: concourse
|
key: concourse
|
||||||
icon: bell
|
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
|
notify-failed: ¬ify-failed
|
||||||
put: apprise-notification
|
put: apprise-notification
|
||||||
|
@ -87,11 +97,18 @@ jobs:
|
||||||
ls image
|
ls image
|
||||||
on_failure:
|
on_failure:
|
||||||
<< : *notify-failed
|
<< : *notify-failed
|
||||||
|
- get: version
|
||||||
|
params:
|
||||||
|
bump: minor
|
||||||
- put: site-registry-image
|
- put: site-registry-image
|
||||||
params:
|
params:
|
||||||
image: image/image.tar
|
image: image/image.tar
|
||||||
|
additional_tags: version/version
|
||||||
on_failure:
|
on_failure:
|
||||||
<< : *notify-failed
|
<< : *notify-failed
|
||||||
|
- put: version
|
||||||
|
params:
|
||||||
|
file: version/version
|
||||||
- name: deploy-static-website
|
- name: deploy-static-website
|
||||||
plan:
|
plan:
|
||||||
- get: site-registry-image
|
- get: site-registry-image
|
||||||
|
|
Reference in a new issue