mirror of
https://github.com/bitnami/minideb.git
synced 2026-06-04 10:13:55 +08:00
e6de8d7e0f
Signed-off-by: Alessandro Chitolina <alekitto@gmail.com>
43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
inputs:
|
|
dist:
|
|
description: 'Dist to build'
|
|
default: 'bookworm'
|
|
platform:
|
|
description: 'Platform to build'
|
|
default: 'amd64'
|
|
is_latest:
|
|
description: The created dist is also latest
|
|
default: false
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Fix for Ubuntu Xenial apt-daily.service triggering
|
|
run: |
|
|
while sudo fuser /var/{lib/{dpkg,apt/lists},cache/apt/archives}/lock >/dev/null 2>&1; do
|
|
sleep 1
|
|
done
|
|
shell: bash
|
|
- run: sudo make .installed-requirements
|
|
shell: bash
|
|
- name: "Install QEMU"
|
|
run: |
|
|
set -x
|
|
if [[ "${{ inputs.platform }}" == "arm64" && "$(uname -m)" != "aarch64" ]]; then
|
|
echo "Installing QEMU"
|
|
sudo apt-get update -qq && sudo apt-get install -y qemu-user-static
|
|
else
|
|
echo "QEMU is not required for platform ${{ inputs.platform }}"
|
|
fi
|
|
shell: bash
|
|
- name: "Build image"
|
|
run: |
|
|
set -x
|
|
echo Building ${{ inputs.dist }} - ${{ inputs.platform }}
|
|
sudo -E bash -x buildone "${{ inputs.dist }}" "${{ inputs.platform }}"
|
|
if ${{ inputs.is_latest }} ; then
|
|
BASENAME=${BASENAME:?Undefined or empty BASENAME}
|
|
echo "Tagging latest"
|
|
docker tag $BASENAME:${{ inputs.dist }}-${{ inputs.platform }} $BASENAME:latest-${{ inputs.platform }}
|
|
fi
|
|
shell: bash
|