-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
55 lines (55 loc) · 1.43 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
kind: pipeline
type: docker
name: prod release
steps:
- name: build and push
image: plugins/gcr
settings:
dockerfile: Dockerfile
registry: gcr.io/cometh-core
repo: demo-homestead
cache_from: gcr.io/cometh-core/demo-homestead:prod
tags:
- prod
json_key:
from_secret: core_google_credentials
build_args_from_env:
- REACT_APP_WALLETCONNECT_PROJECT_ID
environment:
REACT_APP_WALLETCONNECT_PROJECT_ID: ""
- name: rolling update
image: gcr.io/cometh-core/app-rolling-update:latest
environment:
GCP_SA:
from_secret: core_google_credentials
SERVICE: ${DRONE_REPO_NAME}
ENVIRONMENT: prod
depends_on: [build and push]
- name: discord notification
image: appleboy/drone-discord
settings:
webhook_id:
from_secret: discord_webhook_id
webhook_token:
from_secret: discord_webhook_token
username: drone
message: >
{{#success build.status}}
build push and rolling update for prod {{repo.name}} succeeded.
{{build.link}}
{{else}}
build push and rolling update for prod {{repo.name}} failed. Fix me please.
{{build.link}}
{{/success}}
when:
status: [success, failure]
depends_on: [rolling update]
trigger:
branch:
include:
- main
event:
include:
- push
image_pull_secrets:
- core_dockerconfigjson