.gitlab-ci.yml 375 Bytes
Newer Older
Joseph Weston's avatar
Joseph Weston committed
1
2
image: kwant/website-deploy

3
4
before_script:
  - nikola build
5
6
7
  - mkdir -p ~/.ssh
  - chmod 700 ~/.ssh
  - eval $(ssh-agent -s)
8
9
10

test_deploy:
  script:
11
    - echo "$TEST_WEBSITE_KEY" | tr -d '\r' | ssh-add -
12
    - nikola deploy
13
14
15
16
17
  except:
    - master

master_deploy:
  script:
18
    - echo "$MASTER_WEBSITE_KEY" | tr -d '\r' | ssh-add -
19
20
21
    - nikola deploy
  only:
    - master