-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
38 lines (34 loc) · 850 Bytes
/
.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
kind: pipeline
type: docker
name: deploy
steps:
- name: build
image: golang:1.16.0-alpine3.13
commands:
- go run .
environment:
BUILD_SITE: true
- name: push
image: alpine/git:v2.30.1
environment:
DEPLOY_KEY:
from_secret: github_deploy_key
GIT_COMMITTER_EMAIL: [email protected]
GIT_COMMITTER_NAME: bottbottbott
commands:
- git add -f .
- git commit -m '[drone] build site'
- mkdir -p /root/.ssh
- echo "$DEPLOY_KEY" > /root/.ssh/id_rsa
- chmod 600 /root/.ssh/id_rsa
- touch /root/.ssh/known_hosts
- chmod 600 /root/.ssh/known_hosts
- ssh-keyscan -H github.com > /etc/ssh/ssh_known_hosts 2> /dev/null
- git push -f [email protected]:trotttrotttrott/dullspecies.com HEAD:build
trigger:
event:
- push
branch:
- main
repo:
- trotttrotttrott/dullspecies.com