remove never used image build
This commit is contained in:
parent
f4bfd374f9
commit
1e323bfa92
2 changed files with 0 additions and 87 deletions
|
@ -1,73 +0,0 @@
|
||||||
when:
|
|
||||||
- event: push
|
|
||||||
path:
|
|
||||||
- 'alertmanager-ntfy/**'
|
|
||||||
- '.woodpecker/alertmanager-ntfy.yaml'
|
|
||||||
- event: cron
|
|
||||||
cron: daily
|
|
||||||
|
|
||||||
# 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=${IMAGE_NAME}:${ALERTMANAGER-NTFY_VERSION}
|
|
||||||
# - --no-push
|
|
||||||
# - --tar-path=/woodpecker/images/alertmanager-ntfy.tar
|
|
||||||
#
|
|
||||||
# - name: publish-image
|
|
||||||
# image: alpine
|
|
||||||
# environment:
|
|
||||||
# GIT_API_TOKEN:
|
|
||||||
# from_secret: GIT_API_TOKEN
|
|
||||||
# commands:
|
|
||||||
# - apk -u add crane
|
|
||||||
# - crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
|
|
||||||
# - crane push /woodpecker/images/keycloak.tar $IMAGE_NAME:$ALERTMANAGER-NTFY_VERSION-$CI_COMMIT_BRANCH
|
|
||||||
#
|
|
||||||
# - name: tag-version
|
|
||||||
# image: alpine
|
|
||||||
# when:
|
|
||||||
# - branch: main
|
|
||||||
# environment:
|
|
||||||
# GIT_API_TOKEN:
|
|
||||||
# from_secret: GIT_API_TOKEN
|
|
||||||
# commands:
|
|
||||||
# - apk -u add crane
|
|
||||||
# - crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
|
|
||||||
# - crane tag $IMAGE_NAME:$ALERTMANAGER-NTFY_VERSION-$CI_COMMIT_BRANCH $ALERTMANAGER-NTFY_VERSION
|
|
||||||
#
|
|
||||||
# - name: tag-latest
|
|
||||||
# image: alpine
|
|
||||||
# when:
|
|
||||||
# - branch: main
|
|
||||||
# evaluate: 'KEYCLOAK_VERSION == "26.0"'
|
|
||||||
# environment:
|
|
||||||
# GIT_API_TOKEN:
|
|
||||||
# from_secret: GIT_API_TOKEN
|
|
||||||
# commands:
|
|
||||||
# - apk -u add crane
|
|
||||||
# - crane auth login git.hamburg.ccc.de -u woodpecker -p $GIT_API_TOKEN
|
|
||||||
# - crane tag $IMAGE_NAME:$ALERTMANAGER-NTFY_VERSION-$CI_COMMIT_BRANCH latest
|
|
|
@ -1,14 +0,0 @@
|
||||||
ARG TAG=latest
|
|
||||||
FROM docker.io/golang:${TAG} as builder
|
|
||||||
ARG CGO_ENABLED=0
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY go.mod go.sum ./
|
|
||||||
RUN go mod download
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
RUN go build
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=builder /app/alertmanager-ntfy /alertmanager-ntfy
|
|
||||||
ENTRYPOINT ["/alertmanager-ntfy"]
|
|
Loading…
Add table
Add a link
Reference in a new issue