-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
29 lines (27 loc) · 932 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
kind: pipeline
name: update-github-pages
steps:
- name: update-github-pages
# MIT License
# https://github.com/klakegg/docker-hugo
image: klakegg/hugo:0.56.3-ext-debian
environment:
# The deploy key for your github pages repository.
# See https://developer.github.com/v3/guides/managing-deploy-keys/#deploy-keys
SSH_DEPLOY_KEY:
from_secret: SSH_DEPLOY_KEY
commands:
# Store the secret deploy key.
- mkdir -p ~/.ssh && echo "$SSH_DEPLOY_KEY" > ~/.ssh/id_rsa && chmod 0600 ~/.ssh/id_rsa
# Find any SSH server key fingerprints from GitHub.
- ssh-keyscan -H github.com >> ~/.ssh/known_hosts
# Configure git commit details as a bot.
- git config --global user.email "[email protected]"
- git config --global user.name "Deployment Bot"
# Call the deploy script.
- ./deploy.sh
trigger:
branch:
- master
event:
- push