2024-10-07 22:37:23 -04:00
|
|
|
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
|
2024-10-08 00:13:22 -04:00
|
|
|
- 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
|
|
|
|
2024-10-07 22:37:23 -04:00
|
|
|
- name: build-alpine-muddler
|
2024-10-08 00:15:57 -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/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
|
2024-10-08 00:13:22 -04:00
|
|
|
- docker build -t git.vertinext.com/roryejinn/alpine_muddler:latest .
|
|
|
|
- docker push git.vertinext.com/roryejinn/alpine_muddler:latest
|
2024-10-07 22:48:44 -04:00
|
|
|
|
2024-10-07 22:37:23 -04:00
|
|
|
- name: build-alpine-web
|
2024-10-08 00:15:57 -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/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
|
2024-10-08 00:13:22 -04:00
|
|
|
- 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
|
|
|
|
2024-10-07 22:37:23 -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
|
|
|
|
2024-10-07 22:37:23 -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.
|