30 lines
No EOL
868 B
YAML
30 lines
No EOL
868 B
YAML
when:
|
|
- event: push
|
|
path:
|
|
- 'alertmanager-ntfy/**'
|
|
- '.woodpecker/alertmanager-ntfy.yaml'
|
|
- event: cron
|
|
|
|
steps:
|
|
- name: setup
|
|
image: alpine
|
|
commands:
|
|
- ls
|
|
- apk -u add git
|
|
- mkdir /woodpecker/images
|
|
- git clone https://github.com/alexbakker/alertmanager-ntfy.git alertmanager-ntfy/src
|
|
- ls
|
|
- cd alertmanager-ntfy/src
|
|
- git checkout 76d5f772f70d6915c89da00414c20009b03cc361
|
|
- cd ../..
|
|
- 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:76d5f772f70d6915c89da00414c20009b03cc361
|
|
- --no-push
|
|
- --tar-path=/woodpecker/images/alertmanager-ntfy.tar |