86 lines
2.7 KiB
YAML
86 lines
2.7 KiB
YAML
steps:
|
|
- name: build-alpine-python
|
|
image: crazymax/docker
|
|
when:
|
|
- event: [ push, pull_request, tag, release ]
|
|
- path:
|
|
include: [ 'DockerImages/Alpine/Python/Dockerfile' ]
|
|
environment:
|
|
USERNAME:
|
|
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
|
|
- docker build -t git.vertinext.com/roryejinn/Alpine_Python:latest .
|
|
- docker push git.vertinext.com/roryejinn/Alpine_Python:latest
|
|
|
|
- name: build-alpine-muddler
|
|
image: alpine
|
|
when:
|
|
- 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
|
|
TOKEN:
|
|
from_secret: DOCKER_TOKEN
|
|
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
|
|
|
|
- name: build-alpine-web
|
|
image: alpine
|
|
when:
|
|
- 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
|
|
TOKEN:
|
|
from_secret: DOCKER_TOKEN
|
|
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
|
|
|
|
- name: notify-on-failure
|
|
image: codeberg.org/l-x/woodpecker-ntfy
|
|
when:
|
|
- status: [ failure ]
|
|
settings:
|
|
url: https://gotify.vertinext.com/woodpecker
|
|
token:
|
|
from_secret: GOTIFY_TOKEN
|
|
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: codeberg.org/l-x/woodpecker-ntfy
|
|
when:
|
|
- status: [ success ]
|
|
settings:
|
|
url: https://gotify.vertinext.com/woodpecker
|
|
token:
|
|
from_secret: GOTIFY_TOKEN
|
|
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.
|