-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
75 lines (75 loc) · 1.8 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
kind: pipeline
name: versioned_docker
type: docker
trigger:
event:
- tag
steps:
- name: build and publish container image on Gitea
image: plugins/docker
settings: &docker_settings
registry: git.snyssen.be
username: ${DRONE_COMMIT_AUTHOR}
password:
from_secret: gitea_access_token
repo: "git.snyssen.be/${DRONE_REPO}"
build_args: APP_VERSION=${DRONE_SEMVER}
tags: &docker_tags
- ${DRONE_SEMVER_MAJOR}
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}
- ${DRONE_SEMVER}
- latest
- name: notify by e-mail
image: drillster/drone-email
settings:
host:
from_secret: smtp_server
username:
from_secret: smtp_user
password:
from_secret: smtp_pass
from: admin@snyssen.be
depends_on:
- "build and publish container image on Gitea"
when:
status:
- success
- failure
---
kind: pipeline
name: branches_docker
type: docker
trigger:
event:
- push
steps:
- name: build and publish container image on Gitea
image: plugins/docker
settings: &docker_settings
registry: git.snyssen.be
username: ${DRONE_COMMIT_AUTHOR}
password:
from_secret: gitea_access_token
repo: "git.snyssen.be/${DRONE_REPO}"
build_args:
- APP_VERSION=from branch "${DRONE_BRANCH}"
- WEBSITE_URI=https://test.snyssen.be
tags: &docker_tags
- ${DRONE_BRANCH}
- name: notify by e-mail
image: drillster/drone-email
settings:
host:
from_secret: smtp_server
username:
from_secret: smtp_user
password:
from_secret: smtp_pass
from: admin@snyssen.be
depends_on:
- "build and publish container image on Gitea"
when:
status:
- success
- failure