Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
Merge #506
Browse files Browse the repository at this point in the history
506: Split up steps of building docker images to get better feedback r=bonomat a=itchymax



Co-authored-by: itchymax <itchymax@itchysats.network>
  • Loading branch information
bors[bot] and 1010Tom authored Nov 10, 2021
2 parents b5013eb + 3a8e09e commit dc190cf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build-release-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ jobs:
needs: build_binaries
name: Build docker images
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
Expand All @@ -180,10 +183,12 @@ jobs:
username: ${{ github.repository }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and publish docker images
- name: Download release from github
run: |
gh release download ${{ github.event.release.tag_name }} -p '*Linux_x86_64*' -p '*aarch64*' -p '*armv7*'
- name: Unpack archives
run: |
# We need to extract into sub folders to so that our dockerimage can fine the binaries.
#
# By providing `platform` to `docker buildx` the variable `TARGETPLATFORM` will be available
Expand All @@ -199,6 +204,8 @@ jobs:
7z x maker_${{ github.event.release.tag_name }}_Linux_armv7.tar -olinux/arm/v7
7z x taker_${{ github.event.release.tag_name }}_Linux_armv7.tar -olinux/arm/v7
- name: Build maker docker image
run: |
docker buildx build \
--push \
--platform linux/amd64,linux/arm64,linux/arm/v7 \
Expand All @@ -207,6 +214,9 @@ jobs:
--build-arg BINARY_PATH=maker \
.
- name: Build taker docker image
run: |
docker buildx build \
--push \
--platform linux/amd64,linux/arm64,linux/arm/v7 \
Expand All @@ -217,3 +227,4 @@ jobs:
3 changes: 3 additions & 0 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
build_docker_image:
name: Build docker images
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
Expand Down

0 comments on commit dc190cf

Please sign in to comment.