test
This commit is contained in:
@@ -4,8 +4,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
# paths:
|
paths:
|
||||||
# - 'base-image-script/**'
|
- 'base-image-script/**'
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 12 * * 0' # Sundays at noon UTC
|
- cron: '0 12 * * 0' # Sundays at noon UTC
|
||||||
|
|
||||||
@@ -20,28 +20,25 @@ jobs:
|
|||||||
build-rootfs-archives:
|
build-rootfs-archives:
|
||||||
runs-on: docker-build
|
runs-on: docker-build
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
version: [buster, bullseye, bookworm, docker-build]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source
|
- name: Checkout source
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Build Docker image for ${{ matrix.version }}
|
- name: Build all Debian rootfs versions sequentially
|
||||||
run: |
|
run: |
|
||||||
docker build \
|
versions=(buster bullseye bookworm docker-build)
|
||||||
--build-arg VERSION=${{ matrix.version }} \
|
|
||||||
-t fithwum/debian-${{ matrix.version }}-base .
|
|
||||||
|
|
||||||
- name: Run rootfs builder (pt1 script) for ${{ matrix.version }}
|
for version in "${versions[@]}"; do
|
||||||
run: |
|
echo "[INFO] Building Debian $version rootfs..."
|
||||||
docker run --rm --privileged \
|
docker build --build-arg VERSION=$version -t fithwum/debian-$version-base .
|
||||||
-v "$(pwd)":/output \
|
|
||||||
fithwum/debian-${{ matrix.version }}-base \
|
|
||||||
bash base-image-script/debian-${{ matrix.version }}_pt1.sh
|
|
||||||
|
|
||||||
- name: List output archives for ${{ matrix.version }}
|
docker run --rm --privileged \
|
||||||
|
-v "$(pwd)":/output \
|
||||||
|
fithwum/debian-$version-base \
|
||||||
|
bash base-image-script/debian-${version}_pt1.sh
|
||||||
|
done
|
||||||
|
|
||||||
|
- name: List output archives
|
||||||
run: |
|
run: |
|
||||||
echo "[INFO] Looking for tarballs in workspace..."
|
echo "[INFO] Looking for tarballs in workspace..."
|
||||||
find . -name '*.tar.bz2' -ls
|
find . -name '*.tar.bz2' -ls
|
||||||
@@ -58,8 +55,7 @@ jobs:
|
|||||||
run: git clone "${{ env.REPO_URL }}" upload-repo
|
run: git clone "${{ env.REPO_URL }}" upload-repo
|
||||||
|
|
||||||
- name: Clean old archives in upload-repo
|
- name: Clean old archives in upload-repo
|
||||||
run: |
|
run: rm -rf upload-repo/*/*.tar.bz2
|
||||||
rm -rf upload-repo/*/*.tar.bz2
|
|
||||||
|
|
||||||
- name: Copy new archives to upload-repo
|
- name: Copy new archives to upload-repo
|
||||||
run: |
|
run: |
|
||||||
@@ -127,6 +123,7 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# name: Build and Push Multi-Arch Docker Images
|
# name: Build and Push Multi-Arch Docker Images
|
||||||
|
|
||||||
# on:
|
# on:
|
||||||
|
|||||||
Reference in New Issue
Block a user