Skip to content

Commit

Permalink
Upd: Fix building on GitHub
Browse files Browse the repository at this point in the history
Apparently the issue is not with Alpine. Next suspect: cache.
  • Loading branch information
bokysan committed Apr 13, 2022
1 parent fb19630 commit 6d538be
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,8 @@ jobs:
tags: |
boky/postfix:latest
boky/postfix:latest-alpine
# linux/386: WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.15/main: UNTRUSTED signature
# linux/s390x: "rsyslog (no such package)"
platforms: "linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le"
platforms: "linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le"
cache-from: type=local,src=/tmp/.buildx-cache/alpine
cache-to: type=local,dest=/tmp/.buildx-cache-new/alpine
build-args: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,8 @@ jobs:
tags: |
boky/postfix:${{ env.RELEASE_VERSION }}
boky/postfix:${{ env.RELEASE_VERSION }}-alpine
# linux/386: WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.15/main: UNTRUSTED signature
# linux/s390x: "rsyslog (no such package)"
platforms: "linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le"
platforms: "linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le"
cache-from: type=local,src=/tmp/.buildx-cache/alpine
cache-to: type=local,dest=/tmp/.buildx-cache-new/alpine
build-args: |
Expand Down
11 changes: 6 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ declare cache_dir
declare arg_list

if [[ "$CI" == "true" ]]; then
cache_form="/tmp/.buildx-cache/alpine"
cache_to="/tmp/.buildx-cache-new/alpine"
else
cache_from="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )/cache"
cache_to="${cache_from}"
if [[ -f "/tmp/.buildx-cache/alpine/index.json" ]]; then
arg_list="$arg_list --cache-from type=local,src=/tmp/.buildx-cache/alpine/index.json"
fi
fi

cache_from="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )/cache"
cache_to="${cache_from}"

if ! docker buildx inspect multiarch > /dev/null; then
docker buildx create --name multiarch
fi
Expand Down

0 comments on commit 6d538be

Please sign in to comment.