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 docker image alpine which provides a minimal Linux OS
  2. clone the repository
  3. copy the files from the public/ directory to the gitlab server
image: alpine:latest

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