Skip to content
Snippets Groups Projects
Forked from FairCoin.Co / faircoind
56 commits behind the upstream repository.
.gitlab-ci.yml 1.07 KiB
stages:
  - build
  - start
  - stop
  - uninstall
  - remove

build-faircoind:
  stage: build
  tags:
    - FairCoin.Co
  only:
    refs:
      - master
    variables:
      - $CMD =~ /build/
  before_script:
    - mkdir -p ~/.faircoin2
  script:
    - docker-compose down
    - docker-compose build

start-faircoind:
  stage: start
  tags:
    - FairCoin.Co
  only:
    refs:
      - master
    variables:
      - $CMD =~ /build|start/
  script:
    - docker-compose down
    - docker-compose up -d

stop-faircoind:
  stage: stop
  tags:
    - FairCoin.Co
  only:
    refs:
      - master
    variables:
      - $CMD =~ /stop/
  script:
    - docker-compose stop

uninstall-faircoind:
  stage: uninstall
  tags:
    - FairCoin.Co
  only:
    refs:
      - master
    variables:
      - $CMD =~ /uninstall/
  script:
    - docker-compose down

remove-faircoind:
  stage: clean
  tags:
    - FairCoin.Co
  only:
    refs:
      - master
    variables:
      - $CMD =~ /remove/
  script:
    - docker-compose down