From e9c4905f342cd1f39ddc186e3a67d15eb31c4ae5 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Thu, 26 Oct 2023 14:31:31 +0200 Subject: [PATCH] f --- .github/workflows/release.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) 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: |