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: crazymax/docker 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_muddler:latest - name: build-alpine-web image: crazymax/docker 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.