From 8eb5c564a45626df527212a6c9a0f0881bf7b218 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Thu, 26 Oct 2023 14:26:03 +0200 Subject: [PATCH] f --- .github/workflows/release.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5442e73c..b2eac20d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,6 +95,16 @@ 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: | @@ -122,15 +132,6 @@ jobs: run: | cargo binstall cross -y - - name: Create and push docker image - if: matrix.os == 'linux' - run: | - cp README.md build/docker/erc20_processor - cd build/docker - 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: Build binary target/${{ matrix.target }}/release/erc20_processor run: | ${{ matrix.build-with }} build --profile release-lto --target ${{ matrix.target }}