summaryrefslogtreecommitdiff
path: root/.drone.yml
blob: 914a41cd6ada1fbfe0ec713a3b4d384c37bc6be9 (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
32
33
34
35
36
37
38
39
40
41
---
kind: pipeline
type: docker
name: default

clone:
  disable: true

steps:
  - name: pull changes
    image: alpine/git
    volumes:
      - name: public
        path: /public
      - name: ssh
        path: /.ssh
    environment:
      SSH_KEY:
        from_secret: ssh_key
    commands:
      - mkdir -p $HOME/.ssh
      - echo "$SSH_KEY" > $HOME/.ssh/id_ed25519
      - chmod 600 $HOME/.ssh/id_ed25519
      - ssh-keyscan -H m0e.space > $HOME/.ssh/known_hosts 2> /dev/null
      - cd /public
      - git pull origin master
      - git submodule update

  - name: build
    image: klakegg/hugo
    volumes:
      - name: public
        path: /public
    commands:
      - cd /public
      - hugo

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