This commit is contained in:
2025-07-02 18:33:10 -07:00
parent 9929209a06
commit ec4bcdbc2c
8 changed files with 32 additions and 31 deletions

View File

@@ -5,16 +5,16 @@ name: Build and Push Multi-Arch Docker Images
on: on:
push: push:
branches: branches:
- main - master
paths: paths:
- 'buster/Dockerfile' - 'debian/buster/Dockerfile'
- 'bullseye/Dockerfile' - 'debian/bullseye/Dockerfile'
- 'bookworm/Dockerfile' - 'debian/bookworm/Dockerfile'
- 'docker-build/Dockerfile' - 'debian/docker-build/Dockerfile'
- 'buster/**' - 'debian/buster/**'
- 'bullseye/**' - 'debian/bullseye/**'
- 'bookworm/**' - 'debian/bookworm/**'
- 'docker-build/**' - 'debian/docker-build/**'
jobs: jobs:
build: build:
@@ -65,22 +65,22 @@ jobs:
run: | run: |
docker buildx build --platform linux/amd64,linux/arm64 \ docker buildx build --platform linux/amd64,linux/arm64 \
--push -t ${IMAGE_BUSTER} \ --push -t ${IMAGE_BUSTER} \
./buster ./debian/buster
- name: Build and Push bullseye Docker Image - name: Build and Push bullseye Docker Image
run: | run: |
docker buildx build --platform linux/amd64,linux/arm64 \ docker buildx build --platform linux/amd64,linux/arm64 \
--push -t ${IMAGE_BULLSEYE} \ --push -t ${IMAGE_BULLSEYE} \
./bullseye ./debian/bullseye
- name: Build and Push bookworm Docker Image - name: Build and Push bookworm Docker Image
run: | run: |
docker buildx build --platform linux/amd64,linux/arm64 \ docker buildx build --platform linux/amd64,linux/arm64 \
--push -t ${IMAGE_BOOKWORM} \ --push -t ${IMAGE_BOOKWORM} \
./bookworm ./debian/bookworm
- name: Build and Push docker-build Docker Image - name: Build and Push docker-build Docker Image
run: | run: |
docker buildx build --platform linux/amd64,linux/arm64 \ docker buildx build --platform linux/amd64,linux/arm64 \
--push -t ${IMAGE_DOCKER_BUILD} \ --push -t ${IMAGE_DOCKER_BUILD} \
./docker-build ./debian/docker-build

View File

@@ -12,7 +12,7 @@ if [ -e /debian-bookworm_pt2.sh ]
else else
echo " " echo " "
echo "WARNING ! debian-bookworm_pt2.sh not found ... will download new copy." echo "WARNING ! debian-bookworm_pt2.sh not found ... will download new copy."
wget --no-cache https://gitea.fithwum.tech/fithwum/base-image/raw/branch/main/build-script/debian-bookworm_pt2.sh -O /debian-bookworm_pt2.sh wget --no-cache https://raw.githubusercontent.com/fithwum/base-image/refs/heads/main/build-script/debian-bookworm_pt2.sh -O /debian-bookworm_pt2.sh
chmod +x debian-bookworm_pt2.sh chmod +x debian-bookworm_pt2.sh
fi fi
if [ -e /debian-bookworm_pt3.sh ] if [ -e /debian-bookworm_pt3.sh ]
@@ -21,7 +21,7 @@ if [ -e /debian-bookworm_pt3.sh ]
else else
echo " " echo " "
echo "WARNING ! debian-bookworm_pt3.sh not found ... will download new copy." echo "WARNING ! debian-bookworm_pt3.sh not found ... will download new copy."
wget --no-cache https://gitea.fithwum.tech/fithwum/base-image/raw/branch/main/build-script/debian-bookworm_pt3.sh -O /debian-bookworm_pt3.sh wget --no-cache https://raw.githubusercontent.com/fithwum/base-image/refs/heads/main/build-script/debian-bookworm_pt3.sh -O /debian-bookworm_pt3.sh
chmod +x debian-bookworm_pt3.sh chmod +x debian-bookworm_pt3.sh
fi fi
sleep 1 sleep 1

View File

@@ -12,7 +12,7 @@ if [ -e /debian-bullseye_pt2.sh ]
else else
echo " " echo " "
echo "WARNING ! debian-bullseye_pt2.sh not found ... will download new copy." echo "WARNING ! debian-bullseye_pt2.sh not found ... will download new copy."
wget --no-cache https://gitea.fithwum.tech/fithwum/base-image/raw/branch/main/build-script/debian-bullseye_pt2.sh -O /debian-bullseye_pt2.sh wget --no-cache https://raw.githubusercontent.com/fithwum/base-image/refs/heads/main/build-script/debian-bullseye_pt2.sh -O /debian-bullseye_pt2.sh
chmod +x debian-bullseye_pt2.sh chmod +x debian-bullseye_pt2.sh
fi fi
if [ -e /debian-bullseye_pt3.sh ] if [ -e /debian-bullseye_pt3.sh ]
@@ -21,7 +21,7 @@ if [ -e /debian-bullseye_pt3.sh ]
else else
echo " " echo " "
echo "WARNING ! debian-bullseye_pt3.sh not found ... will download new copy." echo "WARNING ! debian-bullseye_pt3.sh not found ... will download new copy."
wget --no-cache https://gitea.fithwum.tech/fithwum/base-image/raw/branch/main/build-script/debian-bullseye_pt3.sh -O /debian-bullseye_pt3.sh wget --no-cache https://raw.githubusercontent.com/fithwum/base-image/refs/heads/main/build-script/debian-bullseye_pt3.sh -O /debian-bullseye_pt3.sh
chmod +x debian-bullseye_pt3.sh chmod +x debian-bullseye_pt3.sh
fi fi
sleep 1 sleep 1

View File

@@ -12,7 +12,7 @@ if [ -e /debian-buster_pt2.sh ]
else else
echo " " echo " "
echo "WARNING ! debian-buster_pt2.sh not found ... will download new copy." echo "WARNING ! debian-buster_pt2.sh not found ... will download new copy."
wget --no-cache https://gitea.fithwum.tech/fithwum/base-image/raw/branch/main/build-script/debian-buster_pt2.sh -O /debian-buster_pt2.sh wget --no-cache https://raw.githubusercontent.com/fithwum/base-image/refs/heads/main/build-script/debian-buster_pt2.sh -O /debian-buster_pt2.sh
chmod +x debian-buster_pt2.sh chmod +x debian-buster_pt2.sh
fi fi
if [ -e /debian-buster_pt3.sh ] if [ -e /debian-buster_pt3.sh ]
@@ -21,7 +21,7 @@ if [ -e /debian-buster_pt3.sh ]
else else
echo " " echo " "
echo "WARNING ! debian-buster_pt3.sh not found ... will download new copy." echo "WARNING ! debian-buster_pt3.sh not found ... will download new copy."
wget --no-cache https://gitea.fithwum.tech/fithwum/base-image/raw/branch/main/build-script/debian-buster_pt3.sh -O /debian-buster_pt3.sh wget --no-cache https://raw.githubusercontent.com/fithwum/base-image/refs/heads/main/build-script/debian-buster_pt3.sh -O /debian-buster_pt3.sh
chmod +x debian-buster_pt3.sh chmod +x debian-buster_pt3.sh
fi fi
sleep 1 sleep 1

View File

@@ -6,23 +6,23 @@ RELEASE=stable
echo " " echo " "
echo "INFO ! Downloading other parts of the script if needed." echo "INFO ! Downloading other parts of the script if needed."
if [ -e /debian-bookworm_pt2.sh ] if [ -e /debian-docker-build_pt2.sh ]
then then
echo "INFO ! debian-bookworm_pt2.sh found ... will not download." echo "INFO ! debian-docker-build_pt2.sh found ... will not download."
else else
echo " " echo " "
echo "WARNING ! debian-bookworm_pt2.sh not found ... will download new copy." echo "WARNING ! debian-docker-build_pt2.sh not found ... will download new copy."
wget --no-cache https://gitea.fithwum.tech/fithwum/base-image/raw/branch/main/build-script/debian-bookworm_pt2.sh -O /debian-bookworm_pt2.sh wget --no-cache https://raw.githubusercontent.com/fithwum/base-image/refs/heads/main/build-script/debian-docker-build_pt2.sh -O /debian-docker-build_pt2.sh
chmod +x debian-bookworm_pt2.sh chmod +x debian-docker-build_pt2.sh
fi fi
if [ -e /debian-bookworm_pt3.sh ] if [ -e /debian-docker-build_pt3.sh ]
then then
echo "INFO ! debian-bookworm_pt3.sh found ... will not download." echo "INFO ! debian-docker-build_pt3.sh found ... will not download."
else else
echo " " echo " "
echo "WARNING ! debian-bookworm_pt3.sh not found ... will download new copy." echo "WARNING ! debian-docker-build_pt3.sh not found ... will download new copy."
wget --no-cache https://gitea.fithwum.tech/fithwum/base-image/raw/branch/main/build-script/debian-bookworm_pt3.sh -O /debian-bookworm_pt3.sh wget --no-cache https://raw.githubusercontent.com/fithwum/base-image/refs/heads/main/build-script/debian-docker-build_pt3.sh -O /debian-docker-build_pt3.sh
chmod +x debian-bookworm_pt3.sh chmod +x debian-docker-build_pt3.sh
fi fi
sleep 1 sleep 1
echo " " echo " "
@@ -38,7 +38,7 @@ apt-get install -y debootstrap ftp-upload bash dirmngr curl
sleep 1 sleep 1
echo " " echo " "
echo "INFO ! Downloading debian & selected packages." echo "INFO ! Downloading debian & selected packages."
debootstrap --force-check-gpg --variant=minbase --components=main,contrib,non-free --include=dirmngr,apt-transport-https,bash,software-properties-common,ca-certificates,wget,curl,nano --arch=amd64 bookworm /debian-bookworm http://deb.debian.org/debian/ debootstrap --force-check-gpg --variant=minbase --components=main,contrib,non-free --include=dirmngr,apt-transport-https,bash,software-properties-common,ca-certificates,wget,curl,nano,docker --arch=amd64 bookworm /debian-bookworm http://deb.debian.org/debian/
echo " " echo " "
echo "INFO ! Filesystem size uncompressed." echo "INFO ! Filesystem size uncompressed."
sleep 1 sleep 1

View File

@@ -1,4 +1,4 @@
FROM scratch FROM scratch
LABEL maintainer "fithwum" LABEL maintainer "fithwum"
ADD /debian-bookworm.tar.bz2 / ADD /debian-docker-build.tar.bz2 /
CMD ["/bin/bash"] CMD ["/bin/bash"]

1
test_build_base.sh Executable file → Normal file
View File

@@ -5,4 +5,5 @@
docker build --pull --rm -f "debian/buster/Dockerfile" -t gitea.fithwum.tech/fithwum/base-image:debian-buster "debian/buster" docker build --pull --rm -f "debian/buster/Dockerfile" -t gitea.fithwum.tech/fithwum/base-image:debian-buster "debian/buster"
docker build --pull --rm -f "debian/bullseye/Dockerfile" -t gitea.fithwum.tech/fithwum/base-image:debian-bullseye "debian/bullseye" docker build --pull --rm -f "debian/bullseye/Dockerfile" -t gitea.fithwum.tech/fithwum/base-image:debian-bullseye "debian/bullseye"
docker build --pull --rm -f "debian/bookworm/Dockerfile" -t gitea.fithwum.tech/fithwum/base-image:debian-bookworm "debian/bookworm" docker build --pull --rm -f "debian/bookworm/Dockerfile" -t gitea.fithwum.tech/fithwum/base-image:debian-bookworm "debian/bookworm"
docker build --pull --rm -f "debian/bookworm/Dockerfile" -t gitea.fithwum.tech/fithwum/base-image:docker-build "debian/docker-build"
docker push -a gitea.fithwum.tech/fithwum/base-image docker push -a gitea.fithwum.tech/fithwum/base-image