Skip to content

Commit 7c18743

Browse files
committed
fix
1 parent 34ebabc commit 7c18743

File tree

1 file changed

+1
-38
lines changed

1 file changed

+1
-38
lines changed

.github/workflows/build_default.yaml

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,8 @@ permissions:
2020
#------------------------------------------------------------------------------------#
2121
jobs:
2222
build-push-alpine:
23-
name: Push (Alpine ${{ matrix.arch }}) --> Docker Hub
24-
#runs-on: ${{ matrix.runner }}
23+
name: Push (Alpine) --> Docker Hub
2524
runs-on: "ubuntu-latest"
26-
strategy:
27-
matrix:
28-
include:
29-
- arch: aarch64
30-
platform: arm64
31-
runner: ubuntu-24.04-arm
32-
- arch: loongarch64
33-
platform: loong64
34-
runner: ubuntu-latest
35-
- arch: riscv64
36-
platform: riscv64
37-
runner: ubuntu-latest
38-
- arch: x86_64
39-
platform: amd64
40-
runner: ubuntu-latest
4125

4226
steps:
4327
- name: Checkout repository
@@ -124,7 +108,6 @@ jobs:
124108
mkdir -p "/tmp/DOCKERFILES" && cd "/tmp/DOCKERFILES"
125109
cp "${GITHUB_WORKSPACE}/main/Github/Runners/alpine.dockerfile" "/tmp/DOCKERFILES/alpine.dockerfile"
126110
#Download Rootfs
127-
if [[ "${{ matrix.platform }}" == "loong64" ]]; then
128111
ROOTFS_FILE="$(curl -qfsSL "https://dl-cdn.alpinelinux.org/alpine/edge/releases/loongarch64/latest-releases.yaml" | grep -oE 'alpine-[^[:space:]"'\'']+\.tar\.gz' | sed 's/[[:space:]]*$//' | sort -u | head -1 | tr -d '"'\''[:space:]')"
129112
for i in {1..3}; do
130113
if curl -w "(DL) <== %{url}\n" -qfsSL "https://dl-cdn.alpinelinux.org/alpine/edge/releases/loongarch64/${ROOTFS_FILE}" -o "/tmp/alpine-minirootfs-loongarch64.tar.gz"; then
@@ -142,7 +125,6 @@ jobs:
142125
fi
143126
[[ $i -eq 3 ]] && { echo "Failed after 3 attempts"; exit 1; }
144127
done
145-
fi
146128
continue-on-error: false
147129

148130
- name: Set up QEMU
@@ -168,25 +150,7 @@ jobs:
168150
password: "${{ secrets.GITHUB_TOKEN }}"
169151
continue-on-error: true
170152

171-
#https://hub.docker.com/r/pkgforge/alpine
172-
#- name: Docker Build and Push (alpine)
173-
# uses: docker/build-push-action@v6
174-
# with:
175-
# context: /tmp/DOCKERFILES/
176-
# file: "/tmp/DOCKERFILES/alpine.dockerfile"
177-
# platforms: "linux/${{ matrix.platform }}"
178-
# build-args: |
179-
# TARGETARCH="${{ matrix.platform }}"
180-
# tags: |
181-
# pkgforge/alpine:${{ matrix.arch }}
182-
# pkgforge/alpine:${{ matrix.arch }}-${{ env.DOCKER_TAG }}
183-
# ghcr.io/pkgforge/devscripts/alpine:${{ matrix.arch }}
184-
# ghcr.io/pkgforge/devscripts/alpine:${{ matrix.arch }}-${{ env.DOCKER_TAG }}
185-
# outputs: type=registry,compression=zstd,compression-level=22
186-
# continue-on-error: true
187-
188153
- name: Docker Build and Push (alpine - multi-platform)
189-
if: matrix.platform != 'loong64'
190154
uses: docker/build-push-action@v6
191155
with:
192156
context: /tmp/DOCKERFILES/
@@ -202,7 +166,6 @@ jobs:
202166
continue-on-error: true
203167

204168
- name: Docker Build and Push (alpine - loong64)
205-
if: matrix.platform == 'loong64'
206169
uses: docker/build-push-action@v6
207170
with:
208171
context: /tmp/DOCKERFILES/

0 commit comments

Comments
 (0)