diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b88cd47..87c8e68 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,25 +1,14 @@ image: debian stages: - - build - - upload + - deploy -before_script: - - apt-get update - - apt-get install -y rsync openssh-client hugo - -build: - stage: build +deploy: + stage: deploy script: + - apt-get update + - apt-get install -y rsync openssh-client hugo - hugo - artifacts: - paths: - - public/ - expire_in: 1 hour - -upload: - stage: upload - script: - mkdir -p ~/.ssh - echo "$PRIVKEY" | base64 -d > ~/.ssh/id_rsa - sleep 60