Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.68 KiB
Newer Older
TonyFord's avatar
TonyFord committed
stages:
  - update
TonyFord's avatar
TonyFord committed
  - build
TonyFord's avatar
TonyFord committed
  - start
  - jekyll_debug
  - stop
  - uninstall
TonyFord's avatar
TonyFord committed
  - remove
TonyFord's avatar
TonyFord committed

update:
  stage: update
  tags:
Tony Ford's avatar
Tony Ford committed
    - strategy-investor.de
TonyFord's avatar
TonyFord committed
  only:
    refs:
      - master
      - main
    variables:
      - $CMD =~ /update|^$/
  before_script:
    - chmod +x ./setenv && . setenv
  script:
    - deploy/update

TonyFord's avatar
TonyFord committed
build:
  stage: build
  tags:
Tony Ford's avatar
Tony Ford committed
    - strategy-investor.de
TonyFord's avatar
TonyFord committed
  only:
    refs:
      - master
      - main
    variables:
      - $CMD =~ /build/
  before_script:
    - chmod +x ./setenv && . setenv
  script:
    - deploy/build

TonyFord's avatar
TonyFord committed
start:
  stage: start
  tags:
Tony Ford's avatar
Tony Ford committed
    - strategy-investor.de
TonyFord's avatar
TonyFord committed
  only:
    refs:
      - master
      - main
    variables:
      - $CMD =~ /start/
  before_script:
    - chmod +x ./setenv && . setenv
  script:
    - deploy/start

jekyll_debug:
  stage: jekyll_debug
  tags:
Tony Ford's avatar
Tony Ford committed
    - strategy-investor.de
TonyFord's avatar
TonyFord committed
  only:
    refs:
      - master
      - main
    variables:
      - $CMD =~ /jekyll_debug/
  before_script:
    - chmod +x ./setenv && . setenv
  script:
    - deploy/jekyll_debug

stop:
  stage: stop
  tags:
Tony Ford's avatar
Tony Ford committed
    - strategy-investor.de
TonyFord's avatar
TonyFord committed
  only:
    refs:
      - master
      - main
    variables:
      - $CMD =~ /^stop$/
  before_script:
    - chmod +x ./setenv && . setenv
  script:
    - deploy/stop

uninstall:
  stage: uninstall
  tags:
Tony Ford's avatar
Tony Ford committed
    - strategy-investor.de
TonyFord's avatar
TonyFord committed
  only:
    refs:
      - master
      - main
    variables:
      - $CMD =~ /^uninstall$/
  before_script:
    - chmod +x ./setenv && . setenv
  script:
    - deploy/uninstall
TonyFord's avatar
TonyFord committed

remove:
  stage: remove
  tags:
Tony Ford's avatar
Tony Ford committed
    - strategy-investor.de
TonyFord's avatar
TonyFord committed
  only:
    refs:
      - master
      - main
    variables:
      - $CMD =~ /^remove$/
  before_script:
    - chmod +x ./setenv && . setenv
  script:
    - deploy/remove