From 5a5acb97dd19a48bd1577e1e2066c56d772dc3b2 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Thu, 26 Oct 2023 13:12:18 +0200 Subject: [PATCH] test release workflow --- .github/workflows/release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eb08235b..1be7b5ba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -113,10 +113,22 @@ jobs: run: | cargo binstall cross -y + - name: Create and push docker image + if: matrix.os == 'linux' + run: | + tag = echo ${{ github.ref }} | sed 's/refs\/tags\///g' + echo $tag + docker create --name build_container -t alpine + docker cp README.md erc20_processor:/usr/bin + docker tag erc20_processor:latest erc20_processor:${{ github.sha }} + docker commit erc20_processor golemfactory/erc20_processor:${{tag}} + docker push erc20_processor:latest + - name: Build binary target/${{ matrix.target }}/release/erc20_processor run: | ${{ matrix.build-with }} build --profile release-lto --target ${{ matrix.target }} + - name: Compress binaries run: | # mv target/${{ matrix.target }}/release-lto/erc20_processor${{ matrix.exe }} target/${{ matrix.target }}/release-lto/erc20_processor${{ matrix.exe }}