From 2fdf1ad8588635489874a29fc90cb21a20ea5d64 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 15 May 2017 02:31:48 -0400 Subject: [PATCH] Updating CI --- .gitlab-ci.yml | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4ed8002..ef6c59b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,23 +1,16 @@ stages: - - compile -# - deploy - -compile: - stage: compile - before_script: + - deploy +deploy: + stage: deploy + before_script: - git submodule update --init - script: hugo --cleanDestinationDir=true -d /srv/runner/live/www.boniface.me/ + script: + - hugo + - /usr/local/bin/deploy-site www.boniface.me artifacts: + when: on_failure paths: - public + expire_in: 5 min only: - master - -#deploy to dreamhost: -# stage: deploy -# script: rsync -e "/usr/bin/ssh" -rv public/ anthonylavado@clam.dreamhost.com:blog.anthonylavado.com -# environment: production -# only: -# - master - -