.gitlab-ci.yml 481 Bytes
Newer Older
1 2 3
pages:
  stage: deploy
  script:
Pallav Agarwal's avatar
Pallav Agarwal committed
4 5 6 7
  - apt-get update
  - apt-get install -y bash curl
  - bash <(curl https://raw.githubusercontent.com/pallavagarwal07/NixCI/master/travis-tests/install-root.sh)
  - su user -s /bin/bash -c 'set -e; cd $HOME; . $HOME/.nix-profile/etc/profile.d/nix.sh; nix-build -j20 . ;                          '
Pallav Agarwal's avatar
Pallav Agarwal committed
8 9 10
  - mkdir public
  - cp -r /home/user/result/public/* ./public
  - chown -R root:root public/*
11 12
  artifacts:
    paths:
Pallav Agarwal's avatar
Pallav Agarwal committed
13
    - public
14
  only:
Pallav Agarwal's avatar
Pallav Agarwal committed
15
  - source