aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Daniel Washburn <daniel@washburn.at> 2021-02-21 17:49:58 +0000
committerGravatar Daniel Washburn <daniel@washburn.at> 2021-02-21 17:49:58 +0000
commit528d6e12c5549eac577cdbe96a1f7139e588a596 (patch)
treec64303d9bdec88236bd59af7414284aef893685a
parent623352cdd7f83271dc235dd5073bdfdaafc573fa (diff)
parente55ef1ac99623e9d40618bb01fb486dd71d8df56 (diff)
Merge branch 'master' into 'master'HEAD0.2.0mastermain
This adds ci/cd job to publish to gitlab pages See merge request muchomas/pet-namer!1
-rw-r--r--.gitlab-ci.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..e0aac03
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,16 @@
+stages:
+ - deploy
+
+pages:
+ stage: deploy
+ script:
+ - apk add --update py-pip
+ - pip install -r requirements.txt
+ - mkdir public
+ - ./pet_names 100 3 > public/index.txt
+ - echo '<html><head></head><body><table>' > public/index.html
+ - cat public/index.txt | sed -e 's/^/<tr><td>/' | sed -e 's#$#</td></tr>#' >> public/index.html
+ - echo '</table></body></html>' >> public/index.html
+ artifacts:
+ paths:
+ - public