From cab100995b41132e35dc23adc2900f94f7560970 Mon Sep 17 00:00:00 2001 From: Dooho Yi Date: Sun, 12 Apr 2020 16:12:03 +0900 Subject: [PATCH] =?UTF-8?q?/=20=E2=80=98.gitlab-ci.yml=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 67e96eb..9090bd2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,13 +1,24 @@ image: python:3.7-alpine -build: +pages: + stage: deploy script: - - apk update && apk add make - - pip install -r requirements.txt - - PATH=$PATH:~/.local/bin - - make publish - - rm -rf /var/www/webapp_doohoyi/nosignal.hopto.org_site/ci/pelican - - cp -r output /var/www/webapp_doohoyi/nosignal.hopto.org_site/ci/pelican + - apk update && apk add make + - pip install -r requirements.txt + - make publish artifacts: paths: - - public + - public/ + only: + - master + +test: + stage: test + script: + - apk update && apk add make + - pip install -r requirements.txt + - make publish + only: + - branches + except: + - master