3
0
login_themes/.drone.yml
Mike Sutton 404b70e2b3
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
FIX:drone
2022-06-08 21:48:12 +02:00

57 lines
1.5 KiB
YAML

---
kind: pipeline
type: docker
name: build-test-deploy
image_pull_secrets:
- registryLogins
platform:
os: linux
arch: amd64
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
steps:
- name: notify_start
image: plugins/slack
settings:
webhook: https://team.wizewerx.tech/hooks/5eq841fropn3prt4kzgoaoprgr
channel: builds
template: >
{{uppercase repo.name}}:{{uppercase build.branch}}:{{build.number}} CI build started
- name: deploy
image: wizewerx/wizewerx-docker-compose
volumes:
- name: dockersock
path: /var/run/docker.sock
environment:
DOCKER_AUTH_CONFIG:
from_secret: registryLogins
commands:
- mkdir -p "/root/.docker" && echo $DOCKER_AUTH_CONFIG > "/root/.docker/config.json"
- pwd
- export BUILD_TARGET=wizewerx/${DRONE_REPO_NAME}
- docker build -t $BUILD_TARGET .
- docker push $BUILD_TARGET
trigger:
branch:
- master
- name: notify_end
image: plugins/slack
settings:
webhook: https://team.wizewerx.tech/hooks/5eq841fropn3prt4kzgoaoprgr
channel: builds
username: mike
template: >
{{uppercase repo.name}}:{{uppercase build.branch}}:{{build.number}}{{#success build.status}} succeeded. Good job. {{else}} failed. FIX THE BUILD!!!.{{/success}}
Build took {{since build.started}}
when:
status: [ success, failure ]
trigger:
branch:
- master