steps: - name: build-alpine-python image: woodpeckerci/plugin-docker-buildx 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 - name: build-alpine-muddler image: alpine 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 - name: build-alpine-web image: alpine 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 - name: notify-on-failure image: alpine 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 - name: notify-on-success image: alpine 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