Archived
1
0
Fork 0
This repository has been archived on 2023-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
ts3web/.drone.yml
Varakh 951220a537
All checks were successful
continuous-integration/drone/push Build is passing
Improve README and make pipeline run with building testing docker image on every branch
2023-04-08 10:17:27 +02:00

75 lines
1.7 KiB
YAML

---
kind: pipeline
type: docker
name: build and test
trigger:
event:
include:
- push
steps:
- name: test build docker image
image: plugins/docker
environment:
REVISION: ${DRONE_COMMIT_SHA}
CREATED: ${DRONE_BUILD_CREATED}
SOURCE_URL: ${DRONE_GIT_HTTP_URL}
settings:
purge: true
dry_run: true
repo: varakh/ts3web
username:
from_secret: dockerhub_user
password:
from_secret: dockerhub_key
tags:
- ${DRONE_COMMIT_SHA}
---
kind: pipeline
type: docker
name: publish
trigger:
event:
include:
- cron
branch:
- master
steps:
- name: publish docker image
image: plugins/docker
environment:
REVISION: ${DRONE_COMMIT_SHA}
CREATED: ${DRONE_BUILD_CREATED}
SOURCE_URL: ${DRONE_GIT_HTTP_URL}
settings:
purge: true
repo: varakh/ts3web
username:
from_secret: dockerhub_user
password:
from_secret: dockerhub_key
tags:
- latest
# adapt for new releases
- 2.2.7-SNAPSHOT
- name: notify about publish
image: drillster/drone-email
settings:
subject: "Build failed"
body: "URL ${DRONE_BUILD_LINK}"
host:
from_secret: mail_host
username:
from_secret: mail_user
password:
from_secret: mail_password
from:
from_secret: mail_from
when:
status:
- failure