Plain

Deploy on JSC GitLab

create .gitlab-ci.yml

Creating and pushing the following file will use the GitLab Continuous Integration feature to copy the html from the public directory of your repository to the server. The script is executed on a shared docker runner width the tag “pages”.

  1. use the default linux docker image
  2. copy the files to distribute to the public/ directory

.gitlab-ci.yml:

pages:
  tags:   
  - public-docker
  script:
  - mkdir public
  - echo 'my test' > public/index.html
  artifacts:
    paths:
    - public