-
Notifications
You must be signed in to change notification settings - Fork 14
/
.drone.yml
43 lines (40 loc) · 1.13 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
kind: pipeline
name: default
steps:
- name: test
image: golang:1.13.1
environment:
MONGO_HOST:
from_secret: MONGO_HOST
MONGO_PORT:
from_secret: MONGO_PORT
MONGO_USER:
from_secret: MONGO_USER
MONGO_PASS:
from_secret: MONGO_PASS
SMTP_USER:
from_secret: SMTP_USER
SMTP_PWD:
from_secret: SMTP_PWD
SMTP_HOST:
from_secret: SMTP_HOST
SMTP_PORT:
from_secret: SMTP_PORT
commands:
- go test ./...
- name: decrypt
image: vladgh/gpg
environment:
GPG_PASSPHASE:
from_secret: GPG_PASSPHASE
commands:
- echo $GPG_PASSPHASE | gpg --batch --yes --passphrase-fd 0 app.yaml.gpg
- echo $GPG_PASSPHASE | gpg --batch --yes --passphrase-fd 0 credential.json.gpg
- name: deploy
image: google/cloud-sdk:alpine
commands:
- gcloud components install app-engine-go -q # install component "app-engine-go"
- gcloud auth activate-service-account --key-file credential.json
- gcloud config set project daily-beauty-209105
- gcloud app deploy -q
- gcloud app deploy cron.yaml -q