diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b28d5820..b154305f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -18,8 +18,17 @@ jobs: - name: Checkout sources uses: actions/checkout@v3 - - run: docker compose build - - run: docker compose push + - run: sudo apt-get update + - name: Install deps + run: sudo apt-get install musl-dev musl-tools + + - name: Install rust toolchain + uses: hecrj/setup-rust-action@v1 + with: + targets: x86_64-unknown-linux-musl + + - run: ./build_connectors.sh + - run: ./push_connectors.sh - uses: withlogicco/setup-compose-cli@v1 - run: docker context create ecs aws --from-env diff --git a/build_connectors.sh b/build_connectors.sh index 5af1fe3f..bf3938ba 100755 --- a/build_connectors.sh +++ b/build_connectors.sh @@ -1,4 +1,4 @@ -# #!/bin/sh +#!/bin/sh cargo build -p rosetta-server-bitcoin --target x86_64-unknown-linux-musl --release mkdir -p target/release/bitcoin/bin cp target/x86_64-unknown-linux-musl/release/rosetta-server-bitcoin target/release/bitcoin/bin diff --git a/push_connectors.sh b/push_connectors.sh new file mode 100755 index 00000000..ea130702 --- /dev/null +++ b/push_connectors.sh @@ -0,0 +1,4 @@ +#!/bin/sh +docker push analoglabs/connector-bitcoin +docker push analoglabs/connector-ethereum +docker push analoglabs/connector-polkadot