DockerImages/.woodpecker.yml

86 lines
2.7 KiB
YAML
Raw Normal View History

steps:
- name: build-alpine-python
2024-10-07 23:34:38 -04:00
image: crazymax/docker
2024-10-07 22:48:44 -04:00
when:
- event: [ push, pull_request, tag, release ]
- path:
2024-10-07 22:58:39 -04:00
include: [ 'DockerImages/Alpine/Python/Dockerfile' ]
2024-10-07 23:34:38 -04:00
environment:
USERNAME:
2024-10-07 22:48:44 -04:00
from_secret: REGISTRY_USERNAME
2024-10-07 23:34:38 -04:00
TOKEN:
2024-10-07 22:48:44 -04:00
from_secret: DOCKER_TOKEN
2024-10-08 00:09:44 -04:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2024-10-07 23:34:38 -04:00
commands:
- cd Alpine/Python
- docker login -u $USERNAME -p $TOKEN git.vertinext.com
- docker build -t git.vertinext.com/roryejinn/Alpine_Python:latest .
- docker push git.vertinext.com/roryejinn/Alpine_Python:latest
2024-10-07 22:48:44 -04:00
- name: build-alpine-muddler
image: alpine
2024-10-07 22:48:44 -04:00
when:
- event: [ push, pull_request, tag, release ]
- path:
2024-10-07 22:58:39 -04:00
include: [ 'DockerImages/Alpine/Muddler/Dockerfile' ]
2024-10-08 00:09:44 -04:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2024-10-07 23:34:38 -04:00
environment:
USERNAME:
2024-10-07 22:48:44 -04:00
from_secret: REGISTRY_USERNAME
2024-10-07 23:34:38 -04:00
TOKEN:
2024-10-07 22:48:44 -04:00
from_secret: DOCKER_TOKEN
2024-10-07 23:34:38 -04:00
commands:
- cd Alpine/Muddler
- docker login -u $USERNAME -p $TOKEN git.vertinext.com
- docker build -t git.vertinext.com/roryejinn/Alpine_Muddler:latest .
- docker push git.vertinext.com/roryejinn/Alpine_Python:latest
2024-10-07 22:48:44 -04:00
- name: build-alpine-web
image: alpine
2024-10-07 22:48:44 -04:00
when:
- event: [ push, pull_request, tag, release ]
- path:
2024-10-07 22:58:39 -04:00
include: [ 'DockerImages/Alphine/Web/Dockerfile' ]
2024-10-08 00:09:44 -04:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2024-10-07 23:34:38 -04:00
environment:
USERNAME:
2024-10-07 22:48:44 -04:00
from_secret: REGISTRY_USERNAME
2024-10-07 23:34:38 -04:00
TOKEN:
2024-10-07 22:48:44 -04:00
from_secret: DOCKER_TOKEN
2024-10-07 23:34:38 -04:00
commands:
- cd Alpine/Python
- docker login -u $USERNAME -p $TOKEN git.vertinext.com
- docker build -t git.vertinext.com/roryejinn/Alpine_Web:latest .
- docker push git.vertinext.com/roryejinn/Alpine_Web:latest
2024-10-07 22:48:44 -04:00
- name: notify-on-failure
2024-10-08 00:09:44 -04:00
image: codeberg.org/l-x/woodpecker-ntfy
2024-10-07 22:48:44 -04:00
when:
- status: [ failure ]
2024-10-08 00:09:44 -04:00
settings:
url: https://gotify.vertinext.com/woodpecker
token:
2024-10-07 23:34:38 -04:00
from_secret: GOTIFY_TOKEN
2024-10-08 00:09:44 -04:00
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.
2024-10-07 22:48:44 -04:00
- name: notify-on-success
2024-10-08 00:09:44 -04:00
image: codeberg.org/l-x/woodpecker-ntfy
2024-10-07 22:48:44 -04:00
when:
- status: [ success ]
2024-10-08 00:09:44 -04:00
settings:
url: https://gotify.vertinext.com/woodpecker
token:
2024-10-07 23:34:38 -04:00
from_secret: GOTIFY_TOKEN
2024-10-08 00:09:44 -04:00
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.