Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Oct 26, 2023
1 parent c0046e6 commit 8eb5c56
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 8eb5c56

Please sign in to comment.