Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
Add .gitlab-ci.yml example for hosting on Gitlab Pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Stegic committed Dec 18, 2020
1 parent f51cf3c commit 2f74ce5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gitlab-ci.yml.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
image: alpine:latest

pages:
stage: deploy
script:
- echo 'Nothing to do...'
artifacts:
paths:
- public
only:
- master

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ This container uses [Ansible](https://www.ansible.com/) to perform start-up task

If the container will not start due to a failure of the entrypoint, set the `WEBARCHIVER_SKIP_ENTRYPOINT` environment variable to `true` or `1`, then restart the container.

## Hosting a pages site on Gitlab

There is an example `.gitlab-ci.yml` file named `.gitlab-ci.yml.example` that can be used to host a site archived into the default `/public` folder using [Gitlab Pages](https://about.gitlab.com/stages-devops-lifecycle/pages/). Simply copy the file and push your repo to Gitlab and you'll be set.

## License

Website Archiver is licensed under GPLv3. See `LICENSE` for the complete language.

0 comments on commit 2f74ce5

Please sign in to comment.