Skip to content
Snippets Groups Projects
Commit f2feb476 authored by TonyFord's avatar TonyFord
Browse files

add another stages

parent dae70c04
No related branches found
No related tags found
No related merge requests found
stages:
- clean
- build
- restart
- start
- stop
- uninstall
- remove
clean-blockchain-data:
stage: clean
build-faircoind:
stage: build
tags:
- FairCoin.Co
only:
refs:
- master
variables:
- $CMD =~ /clean/
- $CMD =~ /build/
before_script:
- mkdir -p ~/.faircoin2
script:
- docker-compose down
after_script:
- echo ${CI_PROJECT_DIR} > ~/test.txt
- rm -R ~/.faircoin2
- docker-compose build
build-faircoind:
stage: build
start-faircoind:
stage: start
tags:
- FairCoin.Co
only:
refs:
- master
variables:
- $CMD =~ /build/
before_script:
- mkdir -p ~/.faircoin2
- $CMD =~ /build|start/
script:
- docker-compose down
- docker-compose build
- docker-compose up -d
restart-faircoind:
stage: restart
stop-faircoind:
stage: stop
tags:
- FairCoin.Co
only:
refs:
- master
variables:
- $CMD =~ /build|restart/
- $CMD =~ /stop/
script:
- docker-compose stop
uninstall-faircoind:
stage: uninstall
tags:
- FairCoin.Co
only:
refs:
- master
variables:
- $CMD =~ /uninstall/
script:
- docker-compose down
- docker-compose up -d
remove-faircoind:
stage: clean
tags:
- FairCoin.Co
only:
refs:
- master
variables:
- $CMD =~ /remove/
script:
- docker-compose down
after_script:
- echo ${CI_PROJECT_DIR} > ~/test.txt
- rm -R ~/.faircoin2
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment