30 lines
1,018 B
YAML
30 lines
1,018 B
YAML
# Manually set a workspace path, so we can use it literally, without using
|
|
# ${CI_WORKSPACE}, when running kaniko, since using ${CI_WORKSPACE} doesn't work.
|
|
# https://github.com/woodpecker-ci/woodpecker/issues/3982
|
|
workspace:
|
|
path: src
|
|
|
|
matrix:
|
|
ALERTMANAGER_NTFY_VERSION:
|
|
- "76d5f772f70d6915c89da00414c20009b03cc361"
|
|
IMAGE_NAME:
|
|
- "git.hamburg.ccc.de/ccchh/oci-images/alertmanager-ntfy"
|
|
|
|
steps:
|
|
- name: setup
|
|
image: alpine
|
|
commands:
|
|
- apk -u add git
|
|
- mkdir /woodpecker/images
|
|
- git clone --revision ${ALERTMANAGER_NTFY_VERSION} https://github.com/alexbakker/alertmanager-ntfy.git
|
|
- ls
|
|
|
|
- name: build-image
|
|
image: gcr.io/kaniko-project/executor
|
|
entrypoint:
|
|
- /kaniko/executor
|
|
- --context=dir:///woodpecker/src/alertmanager-ntfy
|
|
- --dockerfile=./Containerfile
|
|
- --destination=git.hamburg.ccc.de/ccchh/oci-images/alertmanager-ntfy:${ALERTMANAGER-NTFY_VERSION}
|
|
- --no-push
|
|
- --tar-path=/woodpecker/images/alertmanager-ntfy.tar
|