From 527f65d8e6920a08270920b4e2f65462d077d875 Mon Sep 17 00:00:00 2001 From: Dooho Yi Date: Sun, 12 Apr 2020 16:48:13 +0900 Subject: [PATCH] =?UTF-8?q?+=20=E2=80=98gitlab-runner=5Fconfig=5Fexample/d?= =?UTF-8?q?ocker/.gitlab-ci.yml=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../docker/.gitlab-ci.yml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 gitlab-runner_config_example/docker/.gitlab-ci.yml diff --git a/gitlab-runner_config_example/docker/.gitlab-ci.yml b/gitlab-runner_config_example/docker/.gitlab-ci.yml new file mode 100644 index 0000000..20d30ed --- /dev/null +++ b/gitlab-runner_config_example/docker/.gitlab-ci.yml @@ -0,0 +1,28 @@ +image: python:3.7-alpine + +pages: + stage: deploy + script: + - apk update && apk add make + - pip install -r requirements.txt + - make publish + - rm -rf /site-public/pelican + - cp -r public /site-public/pelican + artifacts: + paths: + - public/ + only: + - master + +test: + stage: test + script: + - apk update && apk add make + - pip install -r requirements.txt + - make publish + - rm -rf /site-public/pelican + - cp -r public /site-public/pelican + only: + - branches + except: + - master