summaryrefslogtreecommitdiffstats
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml14
1 files changed, 8 insertions, 6 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 541c2336..88385df1 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -8,10 +8,12 @@ env:
DEFAULT_DOCKER_IMAGE: nicolargo/glances
NODE_ENV: ${{ (contains('refs/heads/master', github.ref) || startsWith(github.ref, 'refs/tags/v')) && 'prod' || 'dev' }}
PUSH_BRANCH: ${{ 'refs/heads/develop' == github.ref || 'refs/heads/master' == github.ref || startsWith(github.ref, 'refs/tags/v') }}
- # Alpine image do not support linux/arm/v6 and linux/arm/v6 - See issue #2735
- DOCKER_PLATFORMS: linux/amd64,linux/arm64,linux/386
- # Ubuntu image only support linux/amd64 and linux/arm64 - See issue #2185
- DOCKER_PLATFORMS_UBUNTU: linux/amd64,linux/arm64
+ # Alpine image platform: https://hub.docker.com/_/alpine
+ # linux/arm/v6,linux/arm/v7 do not work (timeout during the build)
+ DOCKER_PLATFORMS: linux/amd64,linux/arm64/v8
+ # Ubuntu image platforms list: https://hub.docker.com/_/ubuntu
+ # linux/arm/v7 do not work (Cargo/Rust not available)
+ DOCKER_PLATFORMS_UBUNTU: linux/amd64,linux/arm64/v8
on:
workflow_call:
@@ -104,7 +106,7 @@ jobs:
TAG_ARRAY="${TAG_ARRAY::-1} ]"
echo "Tags to build: $TAG_ARRAY"
- echo "::set-output name=tags::$TAG_ARRAY"
+ echo "tags=$TAG_ARRAY" >> $GITHUB_OUTPUT
build_Docker_image:
runs-on: ubuntu-latest
@@ -128,7 +130,7 @@ jobs:
org.opencontainers.image.url=https://nicolargo.github.io/glances/
- name: Cache Docker layers
- uses: actions/cache@v3
+ uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ env.NODE_ENV }}-${{ matrix.os }}-${{ matrix.tag.tag }}