diff options
| author | 2021-02-21 17:49:58 +0000 | |
|---|---|---|
| committer | 2021-02-21 17:49:58 +0000 | |
| commit | e55ef1ac99623e9d40618bb01fb486dd71d8df56 (patch) | |
| tree | c64303d9bdec88236bd59af7414284aef893685a /.gitlab-ci.yml | |
| parent | 623352cdd7f83271dc235dd5073bdfdaafc573fa (diff) | |
This adds ci/cd job to publish to gitlab pages
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 16 |
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 |