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