Browse Source
Merge pull request #503 from itchysats/manually-trigger-docker
Split up docker building into separate steps
shutdown-taker-if-no-maker-present
Itchy Max
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
8 additions and
2 deletions
-
.github/workflows/release-docker.yml
|
|
@ -31,10 +31,12 @@ jobs: |
|
|
|
username: ${{ github.repository }} |
|
|
|
password: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
|
|
|
|
- name: Build and publish docker images |
|
|
|
- name: Download release |
|
|
|
run: | |
|
|
|
gh release download ${{ github.event.inputs.realease_tag }} -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 |
|
|
@ -50,6 +52,8 @@ jobs: |
|
|
|
7z x maker_${{ github.event.inputs.realease_tag }}_Linux_armv7.tar -olinux/arm/v7 |
|
|
|
7z x taker_${{ github.event.inputs.realease_tag }}_Linux_armv7.tar -olinux/arm/v7 |
|
|
|
|
|
|
|
- name: Build maker docker image |
|
|
|
run: | |
|
|
|
docker buildx build \ |
|
|
|
--push \ |
|
|
|
--platform linux/amd64,linux/arm64,linux/arm/v7 \ |
|
|
@ -58,6 +62,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 \ |
|
|
@ -67,4 +74,3 @@ jobs: |
|
|
|
. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|