Skip to content

Commit 8180f02

Browse files
committed
saner
1 parent fd2f5ec commit 8180f02

File tree

3 files changed

+34
-4
lines changed

3 files changed

+34
-4
lines changed

.github/workflows/build_default_alpine.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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:

Github/Runners/alpine.dockerfile

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,22 @@
33
FROM alpine:edge
44
ENV GIT_ASKPASS="/bin/echo"
55
ENV 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
722
CMD ["/bin/sh"]
823
#------------------------------------------------------------------------------------#
924
#END

Github/Runners/alpine_loongarch64.dockerfile

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,22 @@ FROM scratch
44
ADD alpine-minirootfs-loongarch64.tar.gz /
55
ENV GIT_ASKPASS="/bin/echo"
66
ENV 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
823
CMD ["/bin/sh"]
924
#------------------------------------------------------------------------------------#
1025
#END

0 commit comments

Comments
 (0)