2024-10-07 22:37:23 -04:00
|
|
|
steps:
|
|
|
|
- name: build-alpine-python
|
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
2024-10-07 22:48:44 -04:00
|
|
|
when:
|
|
|
|
- event: [ push, pull_request, tag, release ]
|
|
|
|
- path:
|
|
|
|
- include: [ 'DockerImages/Alpine/Python/Dockerfile' ]
|
|
|
|
settings:
|
|
|
|
repo: git.vertinext.com/roryejinn/DockerImages
|
|
|
|
platforms: linux/amd64
|
|
|
|
registry: git.vertinext.com
|
|
|
|
tag: git.vertinext.com/roryejinn/Alpine_Python:latest
|
|
|
|
username:
|
|
|
|
from_secret: REGISTRY_USERNAME
|
|
|
|
password:
|
|
|
|
from_secret: DOCKER_TOKEN
|
|
|
|
|
2024-10-07 22:37:23 -04:00
|
|
|
- name: build-alpine-muddler
|
|
|
|
image: alpine
|
2024-10-07 22:48:44 -04:00
|
|
|
when:
|
|
|
|
- event: [ push, pull_request, tag, release ]
|
|
|
|
- path:
|
|
|
|
- include: [ 'DockerImages/Alpine/Muddler/Dockerfile' ]
|
|
|
|
settings:
|
|
|
|
repo: git.vertinext.com/roryejinn/DockerImages
|
|
|
|
platforms: linux/amd64
|
|
|
|
registry: git.vertinext.com
|
|
|
|
tag: git.vertinext.com/roryejinn/Alpine_Muddler:latest
|
|
|
|
username:
|
|
|
|
from_secret: REGISTRY_USERNAME
|
|
|
|
password:
|
|
|
|
from_secret: DOCKER_TOKEN
|
|
|
|
|
2024-10-07 22:37:23 -04:00
|
|
|
- name: build-alpine-web
|
|
|
|
image: alpine
|
2024-10-07 22:48:44 -04:00
|
|
|
when:
|
|
|
|
- event: [ push, pull_request, tag, release ]
|
|
|
|
- path:
|
|
|
|
- include: [ 'DockerImages/Alphine/Web/Dockerfile' ]
|
|
|
|
settings:
|
|
|
|
repo: git.vertinext.com/roryejinn/DockerImages
|
|
|
|
platforms: linux/amd64
|
|
|
|
registry: git.vertinext.com
|
|
|
|
tag: git.vertinext.com/roryejinn/Alpine_Web:latest
|
|
|
|
username:
|
|
|
|
from_secret: REGISTRY_USERNAME
|
|
|
|
password:
|
|
|
|
from_secret: DOCKER_TOKEN
|
|
|
|
|
2024-10-07 22:37:23 -04:00
|
|
|
- name: notify-on-failure
|
|
|
|
image: alpine
|
2024-10-07 22:48:44 -04:00
|
|
|
when:
|
|
|
|
- status: [ failure ]
|
|
|
|
commands:
|
|
|
|
- apk add curl
|
|
|
|
- curl -H "Authorization: Bearer ${GOTIFY_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
|
|
|
|
|
2024-10-07 22:37:23 -04:00
|
|
|
- name: notify-on-success
|
|
|
|
image: alpine
|
2024-10-07 22:48:44 -04:00
|
|
|
when:
|
|
|
|
- status: [ success ]
|
|
|
|
commands:
|
|
|
|
- apk add curl
|
|
|
|
- curl -H "Authorization: Bearer ${GOTIFY_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
|