diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b2eac20d..0f4e5bf6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,16 +95,6 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Create and push docker image - if: matrix.os == 'linux' - run: | - cp README.md build/docker/erc20_processor - cd build/docker - docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} - docker build --label "org.opencontainers.image.source=https://github.com/golemfactory/erc20_payment_lib" --label "org.opencontainers.image.description=Erc20 payment tool" --label "org.opencontainers.image.licenses=MIT" -t ghcr.io/golemfactory/erc20_processor:latest . - docker push ghcr.io/golemfactory/erc20_processor:latest - docker push ghcr.io/golemfactory/erc20_processor:${{ steps.version.outputs.version }} - - name: Extract version id: version run: | @@ -136,6 +126,15 @@ jobs: run: | ${{ matrix.build-with }} build --profile release-lto --target ${{ matrix.target }} + - name: Create and push docker image + if: matrix.os == 'linux' + run: | + cp target/${{ matrix.target }}/release-lto/erc20_processor build/docker/erc20_processor + cd build/docker + docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} + docker build --label "org.opencontainers.image.source=https://github.com/golemfactory/erc20_payment_lib" --label "org.opencontainers.image.description=Erc20 payment tool" --label "org.opencontainers.image.licenses=MIT" -t ghcr.io/golemfactory/erc20_processor:latest . + docker push ghcr.io/golemfactory/erc20_processor:latest + docker push ghcr.io/golemfactory/erc20_processor:${{ steps.version.outputs.version }} - name: Compress binaries run: |