Compare commits
10 commits
b2826ac228
...
77b044bdd8
| Author | SHA1 | Date | |
|---|---|---|---|
| 77b044bdd8 | |||
| b65552515f | |||
| 45de6dcdb6 | |||
| c0db1be661 | |||
| f8888dbd02 | |||
| 99911e7df9 | |||
| 7e0ab09947 | |||
| 0db2687ebc | |||
| 780d8b580e | |||
| a926accb17 |
4 changed files with 25 additions and 3 deletions
|
|
@ -5,3 +5,4 @@
|
||||||
- utilizing 'SparkleShare' for real-time sync.
|
- utilizing 'SparkleShare' for real-time sync.
|
||||||
- CI powered by server-side gitlab-runner !
|
- CI powered by server-side gitlab-runner !
|
||||||
- themes are ALL pre-download and located at specific location in the server: /home/admin/pelican-themes/
|
- themes are ALL pre-download and located at specific location in the server: /home/admin/pelican-themes/
|
||||||
|
- look inside 'gitlab-runner_config_example' for the server-side configuration tips.
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,13 @@
|
||||||
# and THEN, add more options & modify options..
|
# and THEN, add more options & modify options..
|
||||||
# because the registration must be done explicitly from commnadline.. to get A_GENERATED_TOKEN.
|
# because the registration must be done explicitly from commnadline.. to get A_GENERATED_TOKEN.
|
||||||
|
|
||||||
|
# https://docs.gitlab.com/runner/commands/README.html#gitlab-runner-register
|
||||||
|
# https://docs.gitlab.com/runner/configuration/advanced-configuration.html
|
||||||
|
|
||||||
# example setup running CI @ docker
|
# example setup running CI @ docker
|
||||||
# with this, every commit will refresh whole python packages.. will take 1 min. ==> slow. but up to date all the time..
|
# with this, every commit will refresh whole python packages.. will take 1 min. ==> slow. but up to date all the time..
|
||||||
|
|
||||||
concurrent = 2
|
concurrent = 2 # this should be > 0
|
||||||
check_interval = 0
|
check_interval = 0
|
||||||
|
|
||||||
[session_server]
|
[session_server]
|
||||||
|
|
@ -25,8 +28,9 @@ check_interval = 0
|
||||||
oom_kill_disable = false
|
oom_kill_disable = false
|
||||||
disable_cache = false
|
disable_cache = false
|
||||||
volumes = ["/home/admin/pelican-themes/:/themes", "/var/www/webapp_doohoyi/nosignal.hopto.org_site/ci:/site-public:rw"]
|
volumes = ["/home/admin/pelican-themes/:/themes", "/var/www/webapp_doohoyi/nosignal.hopto.org_site/ci:/site-public:rw"]
|
||||||
|
# above is important, --> https://stackoverflow.com/a/38099850
|
||||||
shm_size = 0
|
shm_size = 0
|
||||||
network_mode = "host"
|
network_mode = "host" # check your network name with 'docker network ls' --> https://stackoverflow.com/a/50461875
|
||||||
[runners.cache]
|
[runners.cache]
|
||||||
[runners.cache.s3]
|
[runners.cache.s3]
|
||||||
[runners.cache.gcs]
|
[runners.cache.gcs]
|
||||||
|
|
|
||||||
10
gitlab-runner_config_example/shell/.gitlab-ci.yml
Normal file
10
gitlab-runner_config_example/shell/.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
build:
|
||||||
|
script:
|
||||||
|
- pip install -r requirements.txt
|
||||||
|
- PATH=$PATH:~/.local/bin
|
||||||
|
- make publish
|
||||||
|
- rm -rf /var/www/webapp_doohoyi/nosignal.hopto.org_site/ci/pelican
|
||||||
|
- cp -r public /var/www/webapp_doohoyi/nosignal.hopto.org_site/ci/pelican
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
|
@ -1,8 +1,15 @@
|
||||||
|
# FIRST, generate a [[runners]] block using command 'sudo gitlab-runner register'
|
||||||
|
# and THEN, add more options & modify options..
|
||||||
|
# because the registration must be done explicitly from commnadline.. to get A_GENERATED_TOKEN.
|
||||||
|
|
||||||
|
# https://docs.gitlab.com/runner/commands/README.html#gitlab-runner-register
|
||||||
|
# https://docs.gitlab.com/runner/configuration/advanced-configuration.html
|
||||||
|
|
||||||
# simple setup running CI @ localhost
|
# simple setup running CI @ localhost
|
||||||
# this means you need to manage python3 repos @ localhost by yourself!
|
# this means you need to manage python3 repos @ localhost by yourself!
|
||||||
# but this builds really fast, because no image fetch/ no update packages, just make !
|
# but this builds really fast, because no image fetch/ no update packages, just make !
|
||||||
|
|
||||||
concurrent = 2
|
concurrent = 2 # this should be > 0
|
||||||
check_interval = 0
|
check_interval = 0
|
||||||
|
|
||||||
[session_server]
|
[session_server]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue