Compare commits
4 commits
alertmanag
...
main
Author | SHA1 | Date | |
---|---|---|---|
b722397a8b |
|||
1f3e972fbd |
|||
1e323bfa92 |
|||
f4bfd374f9 |
5 changed files with 9 additions and 55 deletions
|
@ -1,36 +0,0 @@
|
||||||
when:
|
|
||||||
- event: push
|
|
||||||
path:
|
|
||||||
- 'alertmanager-ntfy/**'
|
|
||||||
- '.woodpecker/alertmanager-ntfy.yaml'
|
|
||||||
- event: cron
|
|
||||||
|
|
||||||
workspace:
|
|
||||||
path: src
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
VERSION:
|
|
||||||
- 76d5f772f70d6915c89da00414c20009b03cc361
|
|
||||||
IMAGE_NAME:
|
|
||||||
- git.hamburg.ccc.de/ccchh/oci-images/alertmanager-ntfy
|
|
||||||
|
|
||||||
|
|
||||||
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
|
|
||||||
- cd alertmanager-ntfy/src && git checkout ${VERSION} && cd ..
|
|
||||||
|
|
||||||
- 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:${VERSION}
|
|
||||||
- --no-push
|
|
||||||
- --tar-path=/woodpecker/images/alertmanager-ntfy.tar
|
|
|
@ -19,7 +19,6 @@ workspace:
|
||||||
# Also because global environment variables aren't a thing.
|
# Also because global environment variables aren't a thing.
|
||||||
matrix:
|
matrix:
|
||||||
KEYCLOAK_VERSION:
|
KEYCLOAK_VERSION:
|
||||||
- 26.0
|
|
||||||
- 26.1
|
- 26.1
|
||||||
- 26.2
|
- 26.2
|
||||||
IMAGE_NAME:
|
IMAGE_NAME:
|
||||||
|
|
|
@ -19,7 +19,6 @@ workspace:
|
||||||
# Also because global environment variables aren't a thing.
|
# Also because global environment variables aren't a thing.
|
||||||
matrix:
|
matrix:
|
||||||
NEXTCLOUD_VERSION:
|
NEXTCLOUD_VERSION:
|
||||||
- 29
|
|
||||||
- 30
|
- 30
|
||||||
- 31
|
- 31
|
||||||
IMAGE_NAME:
|
IMAGE_NAME:
|
||||||
|
|
|
@ -64,8 +64,9 @@ steps:
|
||||||
|
|
||||||
- name: publish-image
|
- name: publish-image
|
||||||
image: docker.io/library/alpine
|
image: docker.io/library/alpine
|
||||||
secrets:
|
environment:
|
||||||
- GIT_API_TOKEN
|
GIT_API_TOKEN:
|
||||||
|
from_secret: GIT_API_TOKEN
|
||||||
commands:
|
commands:
|
||||||
- apk -u add crane
|
- apk -u add crane
|
||||||
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
|
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
|
||||||
|
@ -75,8 +76,9 @@ steps:
|
||||||
image: docker.io/library/alpine
|
image: docker.io/library/alpine
|
||||||
when:
|
when:
|
||||||
- branch: main
|
- branch: main
|
||||||
secrets:
|
environment:
|
||||||
- GIT_API_TOKEN
|
GIT_API_TOKEN:
|
||||||
|
from_secret: GIT_API_TOKEN
|
||||||
commands:
|
commands:
|
||||||
- apk -u add crane
|
- apk -u add crane
|
||||||
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
|
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
|
||||||
|
@ -87,8 +89,9 @@ steps:
|
||||||
when:
|
when:
|
||||||
- branch: main
|
- branch: main
|
||||||
evaluate: 'PENPOT_VERSION == "2.1.2"'
|
evaluate: 'PENPOT_VERSION == "2.1.2"'
|
||||||
secrets:
|
environment:
|
||||||
- GIT_API_TOKEN
|
GIT_API_TOKEN:
|
||||||
|
from_secret: GIT_API_TOKEN
|
||||||
commands:
|
commands:
|
||||||
- apk -u add crane
|
- apk -u add crane
|
||||||
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
|
- crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
|
|
@ -1,11 +0,0 @@
|
||||||
FROM docker.io/library/golang:1 as builder
|
|
||||||
ARG CGO_ENABLED=0
|
|
||||||
WORKDIR /usr/src/app
|
|
||||||
|
|
||||||
COPY src/go.mod src/go.sum ./
|
|
||||||
RUN go mod download
|
|
||||||
COPY src/. .
|
|
||||||
|
|
||||||
RUN go build -v -o /usr/local/bin/app ./...
|
|
||||||
|
|
||||||
CMD ["app"]
|
|
Loading…
Add table
Add a link
Reference in a new issue