find-stone-beer / commit
Do all the build logic as part of pages job.
.gitlab-ci.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 01df85a..01f7c30 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,8 +2,7 @@ image: golang:latest stages: - build-and-test - - run - - deploy + - run-and-deploy before_script: - go version @@ -14,18 +13,11 @@ build-job: script: - make build - make test - -run-job: - stage: run - script: - - make run - artifacts: - paths: - - results.html pages: - stage: deploy + stage: run script: + - make run - mv results.html public/index.html artifacts: paths: