Skip to content

chore: update debian images & its workflow actions #10

chore: update debian images & its workflow actions

chore: update debian images & its workflow actions #10

Workflow file for this run

name: debian-dist
on:
push:
branches: [ main ]
paths:
- '.github/workflows/debian.yml'
- '!debian/**'
workflow_dispatch:
repository_dispatch:
types: debian-build
jobs:
build:
name: Building debian docker images
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
dist:
- {
name: debian-buster,
os: debian,
# 10
symbol: buster,
platforms: "linux/amd64,linux/arm64/v8,linux/arm/v7"
}
- {
name: debian-bullseye,
os: debian,
# 11
symbol: bullseye,
platforms: "linux/amd64,linux/arm64/v8,linux/arm/v7"
}
- {
name: debian-bookworm,
os: debian,
# 12
symbol: bookworm,
platforms: "linux/amd64,linux/arm64/v8,linux/arm/v7"
}
# - {
# name: debian-sid,
# os: debian,
# symbol: sid,
# platforms: "linux/amd64,linux/arm64/v8,linux/arm/v7"
# }
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare
id: prepare
run: |
DIST_NAME=${{ matrix.dist.name }}
USER_NAME=flameshotorg
REPO_NAME=ci-building-images
IMAGE_NAME=${{ matrix.dist.os }}/${{ matrix.dist.symbol }}
TAGS="${USER_NAME}/${REPO_NAME}:${DIST_NAME}"
echo "build_args=VERSION=${DIST_NAME}" >> $GITHUB_OUTPUT
echo "image-name=${IMAGE_NAME}" >> $GITHUB_OUTPUT
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build
uses: docker/build-push-action@v6
with:
context: ./${{ steps.prepare.outputs.image-name }}
file: ./${{ steps.prepare.outputs.image-name }}/Dockerfile
platforms: ${{ matrix.dist.platforms }}
push: ${{ github.event_name != 'pull_request' }}
build-args: ${{ steps.prepare.outputs.build_args }}
tags: ${{ steps.prepare.outputs.tags }}
env:
DOCKER_BUILD_SUMMARY: false
DOCKER_BUILD_RECORD_UPLOAD: false
- name: Clear
if: always()
run: |
rm -rf ${HOME}/.docker/config.json