File tree Expand file tree Collapse file tree 3 files changed +34
-4
lines changed
Expand file tree Collapse file tree 3 files changed +34
-4
lines changed Original file line number Diff line number Diff line change 1- name : 🐬 Builds Base Images DockerHub 🐬
1+ name : 🐬 Build Alpine Base Images DockerHub 🐬
22# REF: https://docs.docker.com/build/ci/github-actions/multi-platform/
33# SECRETS: DOCKERHUB_USERNAME || DOCKERHUB_TOKEN
44# URL: https://hub.docker.com/u/pkgforge
@@ -163,7 +163,7 @@ jobs:
163163 continue-on-error : true
164164# ------------------------------------------------------------------------------------#
165165 build-push-alpine-loongarch64 :
166- name : Push (Alpine ${{ matrix.arch }} ) --> Docker Hub
166+ name : Push (Alpine loongarch64 ) --> Docker Hub
167167 runs-on : " ubuntu-latest"
168168
169169 steps :
Original file line number Diff line number Diff line change 33FROM alpine:edge
44ENV GIT_ASKPASS="/bin/echo"
55ENV GIT_TERMINAL_PROMPT="0"
6- RUN apk add ca-certificates tzdata --latest --upgrade --no-cache --no-interactive
6+ RUN <<EOS
7+ set +e
8+ # Config
9+ echo "nameserver 1.1.1.1" > "/etc/resolv.conf"
10+ echo "nameserver 2606:4700:4700::1111" >> "/etc/resolv.conf"
11+ echo "nameserver 8.8.8.8" >> "/etc/resolv.conf"
12+ echo "nameserver 2620:0:ccc::2" >> "/etc/resolv.conf"
13+ mkdir -pv "/etc/apk"
14+ echo "https://dl-cdn.alpinelinux.org/alpine/edge/main" | tee "/etc/apk/repositories"
15+ echo "https://dl-cdn.alpinelinux.org/alpine/edge/community" | tee -a "/etc/apk/repositories"
16+ echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" | tee -a "/etc/apk/repositories"
17+ # Update
18+ apk upgrade --no-cache --no-interactive 2>/dev/null
19+ apk add ca-certificates --latest --upgrade --no-cache --no-interactive
20+ apk add tzdata --latest --upgrade --no-cache --no-interactive
21+ EOS
722CMD ["/bin/sh" ]
823# ------------------------------------------------------------------------------------#
924# END
Original file line number Diff line number Diff line change @@ -4,7 +4,22 @@ FROM scratch
44ADD alpine-minirootfs-loongarch64.tar.gz /
55ENV GIT_ASKPASS="/bin/echo"
66ENV GIT_TERMINAL_PROMPT="0"
7- RUN apk add ca-certificates tzdata --latest --upgrade --no-cache --no-interactive
7+ RUN <<EOS
8+ set +e
9+ # Config
10+ echo "nameserver 1.1.1.1" > "/etc/resolv.conf"
11+ echo "nameserver 2606:4700:4700::1111" >> "/etc/resolv.conf"
12+ echo "nameserver 8.8.8.8" >> "/etc/resolv.conf"
13+ echo "nameserver 2620:0:ccc::2" >> "/etc/resolv.conf"
14+ mkdir -pv "/etc/apk"
15+ echo "https://dl-cdn.alpinelinux.org/alpine/edge/main" | tee "/etc/apk/repositories"
16+ echo "https://dl-cdn.alpinelinux.org/alpine/edge/community" | tee -a "/etc/apk/repositories"
17+ echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" | tee -a "/etc/apk/repositories"
18+ # Update
19+ apk upgrade --no-cache --no-interactive 2>/dev/null
20+ apk add ca-certificates --latest --upgrade --no-cache --no-interactive
21+ apk add tzdata --latest --upgrade --no-cache --no-interactive
22+ EOS
823CMD ["/bin/sh" ]
924# ------------------------------------------------------------------------------------#
1025# END
You can’t perform that action at this time.
0 commit comments