mirror of
https://github.com/bitnami/minideb.git
synced 2026-06-12 18:11:35 +08:00
e6de8d7e0f
Signed-off-by: Alessandro Chitolina <alekitto@gmail.com>
50 lines
1.6 KiB
YAML
50 lines
1.6 KiB
YAML
name: CI
|
|
|
|
# Controls when the action will run.
|
|
on:
|
|
# Triggers the workflow on pull request events
|
|
pull_request:
|
|
# Remove all permissions by default
|
|
permissions: {}
|
|
env:
|
|
BASENAME: bitnami/minideb
|
|
LATEST: trixie
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
jobs:
|
|
# This workflow contains a single job called "build"
|
|
shellcheck:
|
|
# The type of runner that the job will run on
|
|
runs-on: ubuntu-24.04
|
|
name: Shellcheck
|
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
steps:
|
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
|
|
- name: Install Dependencies
|
|
run: |
|
|
sudo apt-get -qq update
|
|
sudo apt-get install -y shellcheck
|
|
- name: Verify scripts with shellcheck
|
|
run: |
|
|
bash shellcheck
|
|
build_multiarch:
|
|
runs-on: ${{ matrix.arch.platform }}
|
|
needs: [ shellcheck ]
|
|
strategy:
|
|
matrix:
|
|
dist: [bullseye, bookworm, trixie]
|
|
arch:
|
|
- { name: amd64, platform: ubuntu-24.04 }
|
|
- { name: arm64, platform: ubuntu-24.04-arm }
|
|
name: Build ${{ matrix.dist }} on ${{ matrix.arch.name }}
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
|
|
- name: Use local build action
|
|
id: build
|
|
uses: ./.github/actions/build
|
|
with:
|
|
dist: "${{ matrix.dist }}"
|
|
platform: "${{ matrix.arch.name }}"
|
|
is_latest: ${{ matrix.dist == env.LATEST }}
|