Skip to content

Commit

Permalink
Improve release processes
Browse files Browse the repository at this point in the history
  • Loading branch information
lindlof committed Dec 8, 2020
1 parent a6c8690 commit ac35f74
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions contract/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ Interacting with local contract:

```
docker exec -it srps_dev /bin/bash
CODE=$(secretcli tx compute store code/contract.wasm.gz --from a --gas 10000000 -y --keyring-backend test -b block |
CODE=$(secretcli tx compute store code/contract.wasm.gz --from a --gas 1000000 -y --keyring-backend test -b block |
jq -r '.logs[].events[].attributes[] | select(.key == "code_id") | .value'); echo Code $CODE
CONT=$(secretcli tx compute instantiate "$CODE" "{}" --from a --amount 1000000uscrt --label "$(date)" -y -b block |
jq -r '.logs[].events[].attributes[] | select(.key == "contract_address") | .value'); echo Cont $CONT
secretcli tx compute execute $CONT "{\"join_game\": {}}" --from b --amount 1000000uscrt -y --keyring-backend test -b block
secretcli tx compute execute $CONT "{\"join_game\": {}}" --from b --amount 10000000uscrt -y --keyring-backend test -b block
secretcli tx compute execute $CONT "{\"play_hand\": {\"handsign\": \"ROCK\"}}" --from a -y --keyring-backend test -b block
secretcli tx compute execute $CONT "{\"play_hand\": {\"handsign\": \"PAPER\"}}" --from b -y --keyring-backend test -b block
secretcli query compute query $CONT "{\"game_status\": {}}"
Expand Down
10 changes: 9 additions & 1 deletion web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@

Rock paper scissors game secret frontend for Secret Network.

## Testnet build
## Testnet release

```
rm -rf web-testnet
docker-compose -f docker-testnet.yaml up --build
tar -zcvf web-testnet.gz web-testnet
```

## Production build

```
rm -rf web-mainnet
docker-compose -f docker-production.yaml up --build
tar -zcvf web-mainnet.gz web-mainnet
```
4 changes: 2 additions & 2 deletions web/docker-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ services:
web:
build:
context: .
command: ['npm', 'run', 'build:production']
command: ['npm', 'run', 'build']
volumes:
- './build/:/app/build'
- './web-mainnet/:/app/build'
2 changes: 1 addition & 1 deletion web/docker-testnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ services:
context: .
command: ['npm', 'run', 'build:testnet']
volumes:
- './build/:/app/build'
- './web-testnet:/app/build'

0 comments on commit ac35f74

Please sign in to comment.