Commit 6b6dda05 authored by TonyFord's avatar TonyFord
Browse files

improve regex

parent 16bcfa0d
......@@ -37,7 +37,7 @@ start:
refs:
- master
variables:
- $CMD =~ /build|start/
- $CMD =~ /^build$|^start$/
before_script:
- export RUNNER_UID=`id -u`
- export RUNNER_GID=`id -g`
......@@ -55,13 +55,14 @@ create_wallet:
refs:
- master
variables:
- $CMD =~ /create wallet/
- $CMD =~ /^create wallet$/
before_script:
- export RUNNER_UID=`id -u`
- export RUNNER_GID=`id -g`
- docker-compose exec -T faircoin mkdir -p .electrumfair/wallets
script:
- docker-compose exec -T faircoin ./electrumfair/run_electrumfair create --passphrase ${PASSPHRASE} --password ${PASSWORD} --wallet .electrumfair/wallets/${WALLET:-default_wallet}
- docker-compose exec -T faircoin ls -l .electrumfair/wallets
load_wallet:
stage: load_wallet
......@@ -71,7 +72,7 @@ load_wallet:
refs:
- master
variables:
- $CMD =~ /load wallet/
- $CMD =~ /^load wallet$/
before_script:
- export RUNNER_UID=`id -u`
- export RUNNER_GID=`id -g`
......@@ -87,7 +88,7 @@ close_wallet:
refs:
- master
variables:
- $CMD =~ /close wallet/
- $CMD =~ /^close wallet$/
before_script:
- export RUNNER_UID=`id -u`
- export RUNNER_GID=`id -g`
......@@ -103,7 +104,7 @@ walletinfo:
refs:
- master
variables:
- $CMD =~ /walletinfo/
- $CMD =~ /^walletinfo$|^load wallet$|^close wallet$/
before_script:
- export RUNNER_UID=`id -u`
- export RUNNER_GID=`id -g`
......@@ -118,7 +119,7 @@ stop:
refs:
- master
variables:
- $CMD =~ /stop/
- $CMD =~ /^stop$/
script:
- docker-compose stop
......@@ -130,7 +131,7 @@ uninstall:
refs:
- master
variables:
- $CMD =~ /uninstall/
- $CMD =~ /^uninstall$/
script:
- docker-compose exec -T faircoin ./stop_faircoin_services.sh && sleep 10
- docker-compose stop
......@@ -144,7 +145,7 @@ remove:
refs:
- master
variables:
- $CMD =~ /remove/
- $CMD =~ /^remove$/
script:
- docker-compose stop
- docker-compose down -v --rmi all --remove-orphans
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment