summaryrefslogtreecommitdiff
path: root/.drone.yml
blob: 9320c47e58063cb7ee7c378a6950a76e09b84556 (plain) (blame)
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
---
kind: pipeline
type: docker
name: default

steps:
  - name: pull changes and build
    image: klakegg/hugo:alpine
    clone: false
    volumes:
      - name: public
        path: /public
      - name: ssh
        path: /.ssh
    environment:
      SSH_KEY:
        from_secret: ssh_key
    commands:
      - echo "$SSH_KEY" > $HOME/.ssh/id_ed25519
      - chmod 600 $HOME/.ssh/known_hosts
      - ssh-keyscan -H git@m0e.space > ~/.ssh/known_hosts 2> /dev/null
      - cd /public
      - apk add git openssh
      - git pull origin master
      - git submodule update
      - hugo

volumes:
  - name: public
    host:
      path: /var/www/qugalet