From b2c1337fec7efc600998d1bc86c4179fb8bdd83b Mon Sep 17 00:00:00 2001 From: Rohit Narurkar Date: Tue, 25 May 2021 08:24:22 +0400 Subject: [PATCH 01/11] feat: localnet setup --- infra/.env | 11 ++++ infra/avalanche/Dockerfile | 26 +++++++++ infra/avalanche/run.sh | 109 +++++++++++++++++++++++++++++++++++++ infra/docker-compose.yaml | 18 ++++++ 4 files changed, 164 insertions(+) create mode 100644 infra/avalanche/Dockerfile create mode 100644 infra/avalanche/run.sh diff --git a/infra/.env b/infra/.env index 38cb50c5..7d32d6e5 100644 --- a/infra/.env +++ b/infra/.env @@ -83,3 +83,14 @@ export TERRA_ADDRESS=terra10s4mg25tu6termrk8egltfyme4q7sg3hl8s38u # access to plenty of testing funds. export ZCASH_PK=cNSVbbsAcBQ6BAmMr6yH6DLWr7QTDptHwdzpy4GYxGDkNZeKnczK export ZCASH_ADDRESS=tmCTReBSJEDMWfFCkXXPMSB3EfuPg6SE9dw + +# +# Avalanche +# +export AVAX_USERNAME="Username" +export AVAX_PASSWORD="Few43!r389hfweu32" +export AVAX_PK="PrivateKey-ewoqjP7PxY4yr3iLTpLisriqt94hdyDFNgchSxGGztUrTXtNN" +export AVAX_ADDRESS="X-local18jma8ppw3nhx5r4ap8clazz0dps7rv5u00z96u" +export C_AVAX_PK="0xb8c1b5c1d81f9475fdf2e334517d29f733bdfa40682207571b12fc1142cbf329" +export C_AVAX_HEX_ADDRESS="0xa0df350d2637096571F7A701CBc1C5fdE30dF76A" +export C_AVAX_BECH32_ADDRESS="C-local18jma8ppw3nhx5r4ap8clazz0dps7rv5u00z96u" diff --git a/infra/avalanche/Dockerfile b/infra/avalanche/Dockerfile new file mode 100644 index 00000000..5b077ae0 --- /dev/null +++ b/infra/avalanche/Dockerfile @@ -0,0 +1,26 @@ +FROM ubuntu:groovy + +RUN apt update -y +RUN apt-get install -y wget curl build-essential + +# INSTALL GO AND RUST +RUN wget -c https://golang.org/dl/go1.15.5.linux-amd64.tar.gz +RUN tar -C /usr/local -xzf go1.15.5.linux-amd64.tar.gz +ENV PATH=$PATH:/usr/local/go/bin + +# Fetch avalanchego +WORKDIR /app +RUN wget https://github.com/ava-labs/avalanchego/releases/download/v1.4.5/avalanchego-linux-amd64-v1.4.5.tar.gz +RUN tar -xzf avalanchego-linux-amd64-v1.4.5.tar.gz +RUN rm avalanchego-linux-amd64-v1.4.5.tar.gz +ENV PATH=$PATH:/app/avalanchego-v1.4.5 + +# COPY run script +COPY run.sh run.sh +RUN chmod +x run.sh + +# RPC SERVER PORT +EXPOSE 9650 + +# RUN +ENTRYPOINT [ "./run.sh" ] diff --git a/infra/avalanche/run.sh b/infra/avalanche/run.sh new file mode 100644 index 00000000..9254482d --- /dev/null +++ b/infra/avalanche/run.sh @@ -0,0 +1,109 @@ +#!/bin/bash + +AVAX_USERNAME=$1 +AVAX_PASSWORD=$2 +AVAX_PK=$3 +AVAX_ADDRESS=$4 +C_AVAX_PK=$5 +C_AVAX_HEX_ADDRESS=$6 +C_AVAX_BECH32_ADDRESS=$7 + +avalanchego \ + --assertions-enabled=true \ + --tx-fee=1000000 \ + --public-ip=0.0.0.0 \ + --network-id=local \ + --xput-server-port=9652 \ + --xput-server-enabled=false \ + --signature-verification-enabled=true \ + --api-admin-enabled=true \ + --api-ipcs-enabled=true \ + --api-keystore-enabled=true \ + --api-metrics-enabled=true \ + --http-host=0.0.0.0 \ + --http-port=9650 \ + --http-tls-enabled=false \ + --db-enabled=true \ + --db-dir=/root/stash/mynewnode/db \ + --plugin-dir=/app/avalanchego-v1.4.5/plugins \ + --log-level=info \ + --log-dir=/root/stash/mynode/logs \ + --snow-avalanche-batch-size=30 \ + --snow-avalanche-num-parents=5 \ + --snow-sample-size=1 \ + --snow-quorum-size=1 \ + --snow-virtuous-commit-threshold=1 \ + --snow-rogue-commit-threshold=4 \ + --p2p-tls-enabled=true \ + --staking-enabled=false \ + --staking-port=9651 \ + --api-auth-required=false & + +# create a new user +sleep 10 +curl -X POST --data '{ + "jsonrpc":"2.0", + "id" :1, + "method" :"keystore.createUser", + "params" :{ + "username":"'"$AVAX_USERNAME"'", + "password":"'"$AVAX_PASSWORD"'" + } +}' -H 'content-type:application/json;' 127.0.0.1:9650/ext/keystore + +# import private key that contains AVAX into X-chain +sleep 1 +curl -X POST --data '{ + "jsonrpc":"2.0", + "id" :1, + "method" :"avm.importKey", + "params" :{ + "username":"'"$AVAX_USERNAME"'", + "password":"'"$AVAX_PASSWORD"'", + "privateKey":"'"$AVAX_PK"'" + } +}' -H 'content-type:application/json;' 127.0.0.1:9650/ext/bc/X + +# import private key into C-chain +sleep 1 +curl -X POST --data '{ + "jsonrpc":"2.0", + "id" :1, + "method" :"avax.importKey", + "params" :{ + "username" :"'"$AVAX_USERNAME"'", + "password":"'"$AVAX_PASSWORD"'", + "privateKey":"'"$AVAX_PK"'" + } +}' -H 'content-type:application/json;' 127.0.0.1:9650/ext/bc/C/avax + +# export the AVAX to C-chain +sleep 1 +curl -X POST --data '{ + "jsonrpc":"2.0", + "id" :1, + "method" :"avm.exportAVAX", + "params" :{ + "to":"'"$C_AVAX_BECH32_ADDRESS"'", + "destinationChain": "C", + "amount": 500000000, + "username":"'"$AVAX_USERNAME"'", + "password":"'"$AVAX_PASSWORD"'" + } +}' -H 'content-type:application/json;' 127.0.0.1:9650/ext/bc/X + +# import AVAX to the hex address +sleep 1 +curl -X POST --data '{ + "jsonrpc":"2.0", + "id" :1, + "method" :"avax.importAVAX", + "params" :{ + "to":"'"$C_AVAX_HEX_ADDRESS"'", + "sourceChain":"X", + "username":"'"$AVAX_USERNAME"'", + "password":"'"$AVAX_PASSWORD"'" + } +}' -H 'content-type:application/json;' 127.0.0.1:9650/ext/bc/C/avax + +wait %1 diff --git a/infra/docker-compose.yaml b/infra/docker-compose.yaml index 7df9ebce..c063464d 100644 --- a/infra/docker-compose.yaml +++ b/infra/docker-compose.yaml @@ -161,3 +161,21 @@ services: - "0.0.0.0:9944:9944" - "0.0.0.0:9933:9933" command: --dev --ws-external --rpc-external + + # + # Avalanche + # + avalanche: + build: + context: ./avalanche + ports: + - "0.0.0.0:9650:9650" + entrypoint: + - "/root/run.sh" + - "${AVAX_USERNAME}" + - "${AVAX_PASSWORD}" + - "${AVAX_PK}" + - "${AVAX_ADDRESS}" + - "${C_AVAX_PK}" + - "${C_AVAX_HEX_ADDRESS}" + - "${C_AVAX_BECH32_ADDRESS}" From 9b6022b8e18b982ab4141ecc1641928e7f5e863d Mon Sep 17 00:00:00 2001 From: Rohit Narurkar Date: Tue, 25 May 2021 09:09:49 +0400 Subject: [PATCH 02/11] fix: plugin dir has changed --- infra/avalanche/run.sh | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/infra/avalanche/run.sh b/infra/avalanche/run.sh index 9254482d..2876ac0e 100644 --- a/infra/avalanche/run.sh +++ b/infra/avalanche/run.sh @@ -13,8 +13,6 @@ avalanchego \ --tx-fee=1000000 \ --public-ip=0.0.0.0 \ --network-id=local \ - --xput-server-port=9652 \ - --xput-server-enabled=false \ --signature-verification-enabled=true \ --api-admin-enabled=true \ --api-ipcs-enabled=true \ @@ -23,18 +21,14 @@ avalanchego \ --http-host=0.0.0.0 \ --http-port=9650 \ --http-tls-enabled=false \ - --db-enabled=true \ - --db-dir=/root/stash/mynewnode/db \ - --plugin-dir=/app/avalanchego-v1.4.5/plugins \ + --plugin-dir=/app/avalanchego-v1.4.5/avalanchego-latest/plugins \ --log-level=info \ - --log-dir=/root/stash/mynode/logs \ --snow-avalanche-batch-size=30 \ --snow-avalanche-num-parents=5 \ --snow-sample-size=1 \ --snow-quorum-size=1 \ --snow-virtuous-commit-threshold=1 \ --snow-rogue-commit-threshold=4 \ - --p2p-tls-enabled=true \ --staking-enabled=false \ --staking-port=9651 \ --api-auth-required=false & @@ -47,7 +41,7 @@ curl -X POST --data '{ "method" :"keystore.createUser", "params" :{ "username":"'"$AVAX_USERNAME"'", - "password":"'"$AVAX_PASSWORD"'" + "password":"'"$AVAX_PASSWORD"'" } }' -H 'content-type:application/json;' 127.0.0.1:9650/ext/keystore @@ -59,8 +53,8 @@ curl -X POST --data '{ "method" :"avm.importKey", "params" :{ "username":"'"$AVAX_USERNAME"'", - "password":"'"$AVAX_PASSWORD"'", - "privateKey":"'"$AVAX_PK"'" + "password":"'"$AVAX_PASSWORD"'", + "privateKey":"'"$AVAX_PK"'" } }' -H 'content-type:application/json;' 127.0.0.1:9650/ext/bc/X From 801f22fbe31aa066d8bf7ba00777b86e693135e6 Mon Sep 17 00:00:00 2001 From: Rohit Narurkar Date: Tue, 25 May 2021 09:13:46 +0400 Subject: [PATCH 03/11] feat: add avalanche declarations --- README.md | 1 - multichain.go | 11 ++++++++--- multichain_test.go | 4 ++++ 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e867eee5..f13310de 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,6 @@ Adding a `Chain`: // human-readable string to this set of enumerated values. Chains must be listed // in alphabetical order. const ( - Acala = Chain("Acala") Bitcoin = Chain("Bitcoin") BitcoinCash = Chain("BitcoinCash") Dogecoin = Chain("Dogecoin") // (This is our new chain!) diff --git a/multichain.go b/multichain.go index ff3af13b..ef2eee7e 100644 --- a/multichain.go +++ b/multichain.go @@ -99,6 +99,7 @@ type Asset string // from an existing chain, you must add a human-readable string to this set of // enumerated values. Assets must be listed in alphabetical order. const ( + AVAX = Asset("AVAX") // Avalanche BCH = Asset("BCH") // Bitcoin Cash BNB = Asset("BNB") // Binance Coin BTC = Asset("BTC") // Bitcoin @@ -125,6 +126,8 @@ const ( // the origin chain of BTC is Bitcoin. func (asset Asset) OriginChain() Chain { switch asset { + case AVAX: + return Avalanche case BCH: return BitcoinCash case BNB: @@ -172,7 +175,7 @@ func (asset Asset) ChainType() ChainType { switch asset { case BCH, BTC, DGB, DOGE, ZEC: return ChainTypeUTXOBased - case BNB, ETH, FIL, GLMR, LUNA, MATIC: + case AVAX, BNB, ETH, FIL, GLMR, LUNA, MATIC: return ChainTypeAccountBased // These assets are handled separately because they are mock assets. These @@ -211,7 +214,7 @@ type Chain string // human-readable string to this set of enumerated values. Chains must be listed // in alphabetical order. const ( - Acala = Chain("Acala") + Avalanche = Chain("Avalanche") BinanceSmartChain = Chain("BinanceSmartChain") Bitcoin = Chain("Bitcoin") BitcoinCash = Chain("BitcoinCash") @@ -258,7 +261,7 @@ func (chain Chain) ChainType() ChainType { switch chain { case Bitcoin, BitcoinCash, DigiByte, Dogecoin, Zcash: return ChainTypeUTXOBased - case BinanceSmartChain, Ethereum, Fantom, Filecoin, Moonbeam, Polygon, Solana, Terra: + case Avalanche, BinanceSmartChain, Ethereum, Fantom, Filecoin, Moonbeam, Polygon, Solana, Terra: return ChainTypeAccountBased // These chains are handled separately because they are mock chains. These @@ -290,6 +293,8 @@ func (chain Chain) IsUTXOBased() bool { // root asset of Bitcoin chain is BTC. func (chain Chain) NativeAsset() Asset { switch chain { + case Avalanche: + return AVAX case BinanceSmartChain: return BNB case BitcoinCash: diff --git a/multichain_test.go b/multichain_test.go index d79b298c..cff4cb1c 100644 --- a/multichain_test.go +++ b/multichain_test.go @@ -83,6 +83,10 @@ var _ = Describe("Multichain", func() { chain multichain.Chain asset multichain.Asset }{ + { + multichain.Avalanche, + multichain.AVAX, + }, { multichain.Fantom, multichain.FTM, From 25a50398900633dfa8724c32cf4de91f8402eb29 Mon Sep 17 00:00:00 2001 From: Rohit Narurkar Date: Tue, 25 May 2021 09:23:10 +0400 Subject: [PATCH 04/11] fix: solana ffi commit hash in dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index aa2d2001..15ceec2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,6 +39,6 @@ RUN mkdir -p src/github.com/renproject WORKDIR $GOPATH/src/github.com/renproject RUN git clone https://github.com/renproject/solana-ffi WORKDIR $GOPATH/src/github.com/renproject/solana-ffi -RUN git checkout df7838d724f5eaf262ed77ed93b35b3f1f652bd3 +RUN git checkout f6521b8a1af44f4d468bc8e7e67ba3766a5602ef RUN make clean && make RUN go install ./... From 78a38fc93e8f7df350908a5b403da65f93619302 Mon Sep 17 00:00:00 2001 From: Rohit Narurkar Date: Tue, 25 May 2021 09:30:15 +0400 Subject: [PATCH 05/11] fix: no need to clean --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 15ceec2d..93c83f87 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,5 +40,5 @@ WORKDIR $GOPATH/src/github.com/renproject RUN git clone https://github.com/renproject/solana-ffi WORKDIR $GOPATH/src/github.com/renproject/solana-ffi RUN git checkout f6521b8a1af44f4d468bc8e7e67ba3766a5602ef -RUN make clean && make +RUN make RUN go install ./... From d3951801eb635e136afe10c4cb0c7bf3fdfb2de4 Mon Sep 17 00:00:00 2001 From: Rohit Narurkar Date: Tue, 25 May 2021 13:10:47 +0400 Subject: [PATCH 06/11] fix: add personal access token for private git repos --- .github/workflows/test.yml | 35 +++++++++++++++++++++++++++++++++++ Dockerfile | 2 +- 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2022d63b..e876dc6f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,6 +16,11 @@ jobs: with: submodules: recursive + - name: Configure git for Private Modules + env: + TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + run: git config --global url."https://roynalnaruto:${TOKEN}@github.com".insteadOf "https://github.com" + - name: Caching modules uses: actions/cache@v1 with: @@ -124,6 +129,11 @@ jobs: with: submodules: recursive + - name: Configure git for Private Modules + env: + TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + run: git config --global url."https://roynalnaruto:${TOKEN}@github.com".insteadOf "https://github.com" + - name: Caching modules uses: actions/cache@v1 with: @@ -243,6 +253,11 @@ jobs: with: submodules: recursive + - name: Configure git for Private Modules + env: + TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + run: git config --global url."https://roynalnaruto:${TOKEN}@github.com".insteadOf "https://github.com" + - name: Caching modules uses: actions/cache@v1 with: @@ -361,6 +376,11 @@ jobs: with: submodules: recursive + - name: Configure git for Private Modules + env: + TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + run: git config --global url."https://roynalnaruto:${TOKEN}@github.com".insteadOf "https://github.com" + - name: Caching modules uses: actions/cache@v1 with: @@ -479,6 +499,11 @@ jobs: with: submodules: recursive + - name: Configure git for Private Modules + env: + TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + run: git config --global url."https://roynalnaruto:${TOKEN}@github.com".insteadOf "https://github.com" + - name: Caching modules uses: actions/cache@v1 with: @@ -597,6 +622,11 @@ jobs: with: submodules: recursive + - name: Configure git for Private Modules + env: + TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + run: git config --global url."https://roynalnaruto:${TOKEN}@github.com".insteadOf "https://github.com" + - name: Caching modules uses: actions/cache@v1 with: @@ -704,6 +734,11 @@ jobs: build: runs-on: ubuntu-latest steps: + - name: Configure git for Private Modules + env: + TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + run: git config --global url."https://roynalnaruto:${TOKEN}@github.com".insteadOf "https://github.com" + - name: Set up QEMU uses: docker/setup-qemu-action@v1 diff --git a/Dockerfile b/Dockerfile index 93c83f87..15ceec2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,5 +40,5 @@ WORKDIR $GOPATH/src/github.com/renproject RUN git clone https://github.com/renproject/solana-ffi WORKDIR $GOPATH/src/github.com/renproject/solana-ffi RUN git checkout f6521b8a1af44f4d468bc8e7e67ba3766a5602ef -RUN make +RUN make clean && make RUN go install ./... From bfd289a5dd48cdc5e09c5e02ff8494e43b8d075f Mon Sep 17 00:00:00 2001 From: Rohit Narurkar Date: Tue, 25 May 2021 14:08:18 +0400 Subject: [PATCH 07/11] multiple fixes --- .github/workflows/test.yml | 2 ++ Dockerfile | 8 ++++++++ infra/avalanche/run.sh | 2 +- infra/docker-compose.yaml | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e876dc6f..411ef1a8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -757,6 +757,8 @@ jobs: with: push: true tags: renbot/multichain:latest + secrets: | + "github_token=${{ secrets.PERSONAL_ACCESS_TOKEN }}" - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }} diff --git a/Dockerfile b/Dockerfile index 15ceec2d..1e2df641 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,5 @@ +#syntax=docker/dockerfile:1.2 + FROM golang # doing all updates and installs in a single step and removing the apt cache helps reduce the image size @@ -20,6 +22,12 @@ RUN apt-get update && \ ENV GO111MODULE=on ENV GOPROXY=https://proxy.golang.org +# Use GitHub personal access token to fetch dependencies. +RUN --mount=type=secret,id=github_token \ + export GITHUB_TOKEN=$(cat /run/secrets/github_token) +RUN git config --global url."https://${GITHUB_TOKEN}:x-oauth-basic@github.com/".insteadOf "https://github.com/" +ENV GOPRIVATE=github.com/renproject/ren-solana + RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y ENV PATH="/root/.cargo/bin:${PATH}" diff --git a/infra/avalanche/run.sh b/infra/avalanche/run.sh index 2876ac0e..925c57c3 100644 --- a/infra/avalanche/run.sh +++ b/infra/avalanche/run.sh @@ -80,7 +80,7 @@ curl -X POST --data '{ "params" :{ "to":"'"$C_AVAX_BECH32_ADDRESS"'", "destinationChain": "C", - "amount": 500000000, + "amount": 5000000000000, "username":"'"$AVAX_USERNAME"'", "password":"'"$AVAX_PASSWORD"'" } diff --git a/infra/docker-compose.yaml b/infra/docker-compose.yaml index c063464d..1901dcaa 100644 --- a/infra/docker-compose.yaml +++ b/infra/docker-compose.yaml @@ -171,7 +171,7 @@ services: ports: - "0.0.0.0:9650:9650" entrypoint: - - "/root/run.sh" + - "./run.sh" - "${AVAX_USERNAME}" - "${AVAX_PASSWORD}" - "${AVAX_PK}" From 99030085d24b4d83474a5dae753d3c8c10c56cb9 Mon Sep 17 00:00:00 2001 From: Rohit Narurkar Date: Tue, 25 May 2021 14:20:07 +0400 Subject: [PATCH 08/11] fix: use build args for docker build-push --- .github/workflows/test.yml | 9 ++------- Dockerfile | 6 +----- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 411ef1a8..0488cbe3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -734,11 +734,6 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Configure git for Private Modules - env: - TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - run: git config --global url."https://roynalnaruto:${TOKEN}@github.com".insteadOf "https://github.com" - - name: Set up QEMU uses: docker/setup-qemu-action@v1 @@ -757,8 +752,8 @@ jobs: with: push: true tags: renbot/multichain:latest - secrets: | - "github_token=${{ secrets.PERSONAL_ACCESS_TOKEN }}" + build-args: + GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }} diff --git a/Dockerfile b/Dockerfile index 1e2df641..f43811e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,3 @@ -#syntax=docker/dockerfile:1.2 - FROM golang # doing all updates and installs in a single step and removing the apt cache helps reduce the image size @@ -22,9 +20,7 @@ RUN apt-get update && \ ENV GO111MODULE=on ENV GOPROXY=https://proxy.golang.org -# Use GitHub personal access token to fetch dependencies. -RUN --mount=type=secret,id=github_token \ - export GITHUB_TOKEN=$(cat /run/secrets/github_token) +ARG GITHUB_TOKEN RUN git config --global url."https://${GITHUB_TOKEN}:x-oauth-basic@github.com/".insteadOf "https://github.com/" ENV GOPRIVATE=github.com/renproject/ren-solana From 2924f6cb8fc95f006e391825c4fccd27b12b8ba6 Mon Sep 17 00:00:00 2001 From: Rohit Narurkar Date: Tue, 25 May 2021 14:20:52 +0400 Subject: [PATCH 09/11] fix: syntax --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0488cbe3..e75ae2b7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -753,7 +753,7 @@ jobs: push: true tags: renbot/multichain:latest build-args: - GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + - GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }} From 68ae64680f7c5e4b1285f24e2af0ecf5dd8a92bd Mon Sep 17 00:00:00 2001 From: Rohit Narurkar Date: Tue, 25 May 2021 14:22:23 +0400 Subject: [PATCH 10/11] fix: syntax --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e75ae2b7..18a107ed 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -752,8 +752,8 @@ jobs: with: push: true tags: renbot/multichain:latest - build-args: - - GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + build-args: | + GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }} From 8adf326f9c08c0c8a1120f8198e597ed14c08383 Mon Sep 17 00:00:00 2001 From: Rohit Narurkar Date: Tue, 25 May 2021 14:40:04 +0400 Subject: [PATCH 11/11] try different syntax --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 18a107ed..34206398 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -753,7 +753,7 @@ jobs: push: true tags: renbot/multichain:latest build-args: | - GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + GITHUB_TOKEN=${{ secrets.PERSONAL_ACCESS_TOKEN }} - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }}