Skip to content

Build container: toolbox-kdedev #343

Build container: toolbox-kdedev

Build container: toolbox-kdedev #343

# SPDX-FileCopyrightText: Timothée Ravier <tim@siosm.fr>
# SPDX-License-Identifier: CC0-1.0
name: "Build container: toolbox-kdedev"
env:
NAME: "toolbox-kdedev"
REGISTRY: "quay.io/travier"
on:
pull_request:
branches:
- "main"
paths:
- "toolbox-kdedev/**"
- ".github/workflows/toolbox-kdedev.yml"
push:
branches:
- "main"
paths:
- "toolbox-kdedev/**"
- ".github/workflows/toolbox-kdedev.yml"
schedule:
- cron: "0 0 * * MON"
workflow_dispatch:
permissions: "read-all"
# Prevent multiple workflow runs from racing to ensure that pushes are made
# sequentialy for the main branch. Also cancel in progress workflow runs for
# pull requests only.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build-push-image:
runs-on: "ubuntu-24.04"
container:
image: "quay.io/travier/podman-action" # zizmor: ignore[unpinned-images]
options: "--security-opt=label=disable --privileged --user 0:0 --device=/dev/kvm --device=/dev/fuse --volume /:/run/host:rw"
steps:
- name: "Checkout repo"
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: "Build and push container image"
uses: ./.github/actions/build-push
with:
name: ${{ env.NAME }}
registry: ${{ env.REGISTRY }}
username: ${{ secrets.BOT_USERNAME }}
password: ${{ secrets.BOT_SECRET }}
cosign-private-key: ${{ secrets.COSIGN_PRIVATE_KEY }}
freespace: true