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 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' ] 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' ] 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: alpine when: - status: [ failure ] environment: TOKEN: from_secret: GOTIFY_TOKEN commands: - apk add curl - >- curl -H "Authorization: Bearer $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 ] environment: TOKEN: from_secret: GOTIFY_TOKEN commands: - apk add curl - >- curl -H "Authorization: Bearer $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