set image labels
This commit is contained in:
parent
cd58b06474
commit
8db8c525aa
2 changed files with 6 additions and 36 deletions
4
labels
Normal file
4
labels
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
org.opencontainers.image.authors=Pim Kunis
|
||||||
|
org.opencontainers.image.source=https://git.pim.kunis.nl/pim/concourse-apprise-notifier/
|
||||||
|
org.opencontainers.image.documentation=https://git.pim.kunis.nl/pim/concourse-apprise-notifier/src/branch/master/README.md
|
||||||
|
org.opencontainers.image.description=Concourse resource type to send Apprise notifications.
|
38
pipeline.yml
38
pipeline.yml
|
@ -11,7 +11,7 @@ resources:
|
||||||
repository: git.pim.kunis.nl/pim/concourse-apprise-notifier
|
repository: git.pim.kunis.nl/pim/concourse-apprise-notifier
|
||||||
username: pim
|
username: pim
|
||||||
password: ((api_key))
|
password: ((api_key))
|
||||||
tag: "((image_version))"
|
tag: ((image_version))
|
||||||
icon: docker
|
icon: docker
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -33,6 +33,7 @@ jobs:
|
||||||
- name: image
|
- name: image
|
||||||
params:
|
params:
|
||||||
DOCKERFILE: repo/Dockerfile
|
DOCKERFILE: repo/Dockerfile
|
||||||
|
LABELS_FILE: repo/labels
|
||||||
run:
|
run:
|
||||||
path: sh
|
path: sh
|
||||||
args:
|
args:
|
||||||
|
@ -40,41 +41,6 @@ jobs:
|
||||||
- |
|
- |
|
||||||
build
|
build
|
||||||
ls image
|
ls image
|
||||||
cat image/digest | cut -d ":" -f 2- > image/tag
|
|
||||||
# - task: get-old-packages
|
|
||||||
# config:
|
|
||||||
# platform: linux
|
|
||||||
# image_resource:
|
|
||||||
# type: registry-image
|
|
||||||
# source:
|
|
||||||
# repository: badouralix/curl-jq
|
|
||||||
# outputs:
|
|
||||||
# - name: old-packages
|
|
||||||
# run:
|
|
||||||
# path: sh
|
|
||||||
# args:
|
|
||||||
# - -exc
|
|
||||||
# - |
|
|
||||||
# ls -lash
|
|
||||||
# curl -X 'GET' 'https://git.pim.kunis.nl/api/v1/packages/pim/container/concourse-apprise-notifier/((image_version))'
|
|
||||||
# curl -X 'GET' 'https://git.pim.kunis.nl/api/v1/packages/pim?type=container&q=concourse-apprise-notifier' -H 'accept: application/json' | jq -rc 'map(.version) | .[]' > old-packages/packages.txt
|
|
||||||
# cat old-packages/packages.txt
|
|
||||||
# - task: delete-old-packages
|
|
||||||
# config:
|
|
||||||
# platform: linux
|
|
||||||
# image_resource:
|
|
||||||
# type: registry-image
|
|
||||||
# source:
|
|
||||||
# repository: badouralix/curl-jq
|
|
||||||
# inputs:
|
|
||||||
# - name: old-packages
|
|
||||||
# run:
|
|
||||||
# path: sh
|
|
||||||
# args:
|
|
||||||
# - -exc
|
|
||||||
# - |
|
|
||||||
# ls -lash
|
|
||||||
# while read pkg; do curl -X 'DELETE' "https://git.pim.kunis.nl/api/v1/packages/pim/container/concourse-apprise-notifier/$pkg?token=((api_key))" -H 'accept: application/json'; done < old-packages/packages.txt
|
|
||||||
- put: registry-image
|
- put: registry-image
|
||||||
params:
|
params:
|
||||||
image: image/image.tar
|
image: image/image.tar
|
||||||
|
|
Loading…
Reference in a new issue