fuzzyworld

find-stone-beer / commit

Do all the build logic as part of pages job.

5c3e4a5a68d537d294bf30cfece2f55efa0bfe6d · Pavel Safronov · 2023-08-23 13:12:14 -0700 · parents 73aaef15ab64

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: