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

improve regex

parent 16bcfa0d
...@@ -37,7 +37,7 @@ start: ...@@ -37,7 +37,7 @@ start:
refs: refs:
- master - master
variables: variables:
- $CMD =~ /build|start/ - $CMD =~ /^build$|^start$/
before_script: before_script:
- export RUNNER_UID=`id -u` - export RUNNER_UID=`id -u`
- export RUNNER_GID=`id -g` - export RUNNER_GID=`id -g`
...@@ -55,13 +55,14 @@ create_wallet: ...@@ -55,13 +55,14 @@ create_wallet:
refs: refs:
- master - master
variables: variables:
- $CMD =~ /create wallet/ - $CMD =~ /^create wallet$/
before_script: before_script:
- export RUNNER_UID=`id -u` - export RUNNER_UID=`id -u`
- export RUNNER_GID=`id -g` - export RUNNER_GID=`id -g`
- docker-compose exec -T faircoin mkdir -p .electrumfair/wallets - docker-compose exec -T faircoin mkdir -p .electrumfair/wallets
script: 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 ./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: load_wallet:
stage: load_wallet stage: load_wallet
...@@ -71,7 +72,7 @@ load_wallet: ...@@ -71,7 +72,7 @@ load_wallet:
refs: refs:
- master - master
variables: variables:
- $CMD =~ /load wallet/ - $CMD =~ /^load wallet$/
before_script: before_script:
- export RUNNER_UID=`id -u` - export RUNNER_UID=`id -u`
- export RUNNER_GID=`id -g` - export RUNNER_GID=`id -g`
...@@ -87,7 +88,7 @@ close_wallet: ...@@ -87,7 +88,7 @@ close_wallet:
refs: refs:
- master - master
variables: variables:
- $CMD =~ /close wallet/ - $CMD =~ /^close wallet$/
before_script: before_script:
- export RUNNER_UID=`id -u` - export RUNNER_UID=`id -u`
- export RUNNER_GID=`id -g` - export RUNNER_GID=`id -g`
...@@ -103,7 +104,7 @@ walletinfo: ...@@ -103,7 +104,7 @@ walletinfo:
refs: refs:
- master - master
variables: variables:
- $CMD =~ /walletinfo/ - $CMD =~ /^walletinfo$|^load wallet$|^close wallet$/
before_script: before_script:
- export RUNNER_UID=`id -u` - export RUNNER_UID=`id -u`
- export RUNNER_GID=`id -g` - export RUNNER_GID=`id -g`
...@@ -118,7 +119,7 @@ stop: ...@@ -118,7 +119,7 @@ stop:
refs: refs:
- master - master
variables: variables:
- $CMD =~ /stop/ - $CMD =~ /^stop$/
script: script:
- docker-compose stop - docker-compose stop
...@@ -130,7 +131,7 @@ uninstall: ...@@ -130,7 +131,7 @@ uninstall:
refs: refs:
- master - master
variables: variables:
- $CMD =~ /uninstall/ - $CMD =~ /^uninstall$/
script: script:
- docker-compose exec -T faircoin ./stop_faircoin_services.sh && sleep 10 - docker-compose exec -T faircoin ./stop_faircoin_services.sh && sleep 10
- docker-compose stop - docker-compose stop
...@@ -144,7 +145,7 @@ remove: ...@@ -144,7 +145,7 @@ remove:
refs: refs:
- master - master
variables: variables:
- $CMD =~ /remove/ - $CMD =~ /^remove$/
script: script:
- docker-compose stop - docker-compose stop
- docker-compose down -v --rmi all --remove-orphans - 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