This commit is contained in:
parent
71e9122109
commit
691b7ff2da
@ -10,6 +10,8 @@ steps:
|
||||
from_secret: REGISTRY_USERNAME
|
||||
TOKEN:
|
||||
from_secret: DOCKER_TOKEN
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
commands:
|
||||
- cd Alpine/Python
|
||||
- docker login -u $USERNAME -p $TOKEN git.vertinext.com
|
||||
@ -22,6 +24,8 @@ steps:
|
||||
- event: [ push, pull_request, tag, release ]
|
||||
- path:
|
||||
include: [ 'DockerImages/Alpine/Muddler/Dockerfile' ]
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
USERNAME:
|
||||
from_secret: REGISTRY_USERNAME
|
||||
@ -39,6 +43,8 @@ steps:
|
||||
- event: [ push, pull_request, tag, release ]
|
||||
- path:
|
||||
include: [ 'DockerImages/Alphine/Web/Dockerfile' ]
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
USERNAME:
|
||||
from_secret: REGISTRY_USERNAME
|
||||
@ -51,35 +57,29 @@ steps:
|
||||
- docker push git.vertinext.com/roryejinn/Alpine_Web:latest
|
||||
|
||||
- name: notify-on-failure
|
||||
image: alpine
|
||||
image: codeberg.org/l-x/woodpecker-ntfy
|
||||
when:
|
||||
- status: [ failure ]
|
||||
environment:
|
||||
TOKEN:
|
||||
settings:
|
||||
url: https://gotify.vertinext.com/woodpecker
|
||||
token:
|
||||
from_secret: GOTIFY_TOKEN
|
||||
commands:
|
||||
- apk add curl
|
||||
- >-
|
||||
curl -H "Authorization: Bearer $TOKEN"
|
||||
-H "Title: ${CI} - ${CI_REPO_NAME}"
|
||||
-H "Tag: warning"
|
||||
-H "Actions: http, Open Build, ${CI_PIPLINE_URL}, clear=true"
|
||||
-d "Failed to build docker images."
|
||||
gotify.vertinext.com/woodpecker
|
||||
title: ${CI} - ${CI_REPO_NAME}
|
||||
actions: "http, Open Build, ${CI_PIPELINE_URL}, clear=true"
|
||||
tags: warning
|
||||
icon: https://woodpecker-ci.org/img/logo.svg
|
||||
message: Failed to build docker images.
|
||||
|
||||
- name: notify-on-success
|
||||
image: alpine
|
||||
image: codeberg.org/l-x/woodpecker-ntfy
|
||||
when:
|
||||
- status: [ success ]
|
||||
environment:
|
||||
TOKEN:
|
||||
settings:
|
||||
url: https://gotify.vertinext.com/woodpecker
|
||||
token:
|
||||
from_secret: GOTIFY_TOKEN
|
||||
commands:
|
||||
- apk add curl
|
||||
- >-
|
||||
curl -H "Authorization: Bearer $TOKEN"
|
||||
-H "Title: ${CI} - ${CI_REPO_NAME}"
|
||||
-H "Tag: package"
|
||||
-H "Actions: http, Open Build, ${CI_PIPLINE_URL}, clear=true"
|
||||
-d "Docker images rebuilt and pushed to the container repository."
|
||||
gotify.vertinext.com/woodpecker
|
||||
title: ${CI} - ${CI_REPO_NAME}
|
||||
actions: "http, Open Build, ${CI_PIPELINE_URL}, clear=true"
|
||||
tags: whale
|
||||
icon: https://woodpecker-ci.org/img/logo.svg
|
||||
message: Rebuilt docker images and pushed to image repository.
|
||||
|
Loading…
Reference in New Issue
Block a user