forked from TripSit/TripBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
101 lines (98 loc) · 2.57 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
kind: pipeline
type: docker
name: Deploy TripBot
steps:
- name: Rebuild TripBot
image: docker
commands:
- apk update
- apk upgrade
- apk add --no-cache git
- docker compose -f docker-compose.host.yml --project-name tripbot up tripbot -d --force-recreate --build
# - tail -f /dev/null
environment:
NODE_ENV:
from_secret: NODE_ENV
DOCKER_HOST:
from_secret: DOCKER_HOST
DOCKER_BUILDKIT:
from_secret: DOCKER_BUILDKIT
DISCORD_CLIENT_ID:
from_secret: DISCORD_CLIENT_ID
DISCORD_CLIENT_TOKEN:
from_secret: DISCORD_CLIENT_TOKEN
DISCORD_GUILD_ID:
from_secret: DISCORD_GUILD_ID
DISCORD_OWNER_ID:
from_secret: DISCORD_OWNER_ID
DRONE_TOKEN:
from_secret: DRONE_TOKEN
DISCORD_CLIENT_SECRET:
from_secret: DISCORD_CLIENT_SECRET
DISCORD_CLIENT_REDIRECT_URI:
from_secret: DISCORD_CLIENT_REDIRECT_URI
GITHUB_TOKEN:
from_secret: GITHUB_TOKEN
GLITCHTIP_DSN:
from_secret: GLITCHTIP_DSN
RAPID_TOKEN:
from_secret: RAPID_TOKEN
ROLLBAR_TOKEN:
from_secret: ROLLBAR_TOKEN
IMGUR_ID:
from_secret: IMGUR_ID
IMGUR_SECRET:
from_secret: IMGUR_SECRET
YOUTUBE_TOKEN:
from_secret: YOUTUBE_TOKEN
MATRIX_BOT_PASSWORD:
from_secret: MATRIX_BOT_PASSWORD
MOODLE_TOKEN:
from_secret: MOODLE_TOKEN
GEMINI_KEY:
from_secret: GEMINI_KEY
REVOLT_BOT_TOKEN:
from_secret: REVOLT_BOT_TOKEN
WOLFRAM_TOKEN:
from_secret: WOLFRAM_TOKEN
IMDB_TOKEN:
from_secret: IMDB_TOKEN
SENTRY_TOKEN:
from_secret: SENTRY_TOKEN
- name: discord notification
image: appleboy/drone-discord
settings:
webhook_id:
from_secret: WEBHOOK_ID
webhook_token:
from_secret: WEBHOOK_TOKEN
avatar_url: https://i.imgur.com/tnw3I34.png
username: 'Drone CI'
message: |
{{#success build.status}}
Build {{build.number}} succeeded.
{{else}}
Build {{build.number}} failed.
{{/success}}
Build time: {{build.started}}
Commit message: {{commit.message}}
Commit author: {{commit.author}}
Commit branch: {{commit.branch}}
{{#success build.status}}
View logs: <{{build.link}}>
{{else}}
View failed job: <{{build.link}}>
{{/success}}
trigger:
branch:
- main
- Docker-update
trigger:
event:
# - cron
- custom
- push
# - pull_request
# - tag
# - promote
# - rollback