Skip to content

Instantly share code, notes, and snippets.

@mattyjones
Created February 13, 2017 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattyjones/c0c378a0d2acfd056c9ae1e8444af9ac to your computer and use it in GitHub Desktop.
Save mattyjones/c0c378a0d2acfd056c9ae1e8444af9ac to your computer and use it in GitHub Desktop.

.gitlab-vi.yml

production:
  script:
    - hugo --cacheDir $HOME/cache
    - sudo cp -R public/* /var/www/html/
    - sudo chown -R root:root /var/www/html/
  only:
    - master

config.toml

gitlab-runner@hugo:~$ cat .gitlab-runner/config.toml
concurrent = 1
check_interval = 0

[[runners]]
  name = "deploy caffeinatedengineering.io"
  url = "https://gitlab.com/ci"
  token = "e788a4e58c8c463b8b0aa27c85ba33"
  executor = "shell"
  [runners.cache]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment