constellation/.github/workflows/build-libvirt-container.yml
renovate[bot] 1fe1ca3b55
deps: update GitHub action dependencies (#3941)
* deps: update GitHub action dependencies
* ci: dont update Go through renovate

---------

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Weiße <dw@edgeless.systems>
2025-10-16 15:43:28 +02:00

43 lines
1.1 KiB
YAML

name: Build libvirtd base container
on:
push:
branches:
- "main"
paths:
- "flake.nix"
- "flake.lock"
- "nix/containers/libvirtd_base.nix"
- ".github/workflows/build-libvirt-container.yml"
workflow_dispatch:
jobs:
build-container:
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- name: Setup bazel
uses: ./.github/actions/setup_bazel_nix
with:
nixTools: |
crane
gzip
- name: Log in to the Container registry
uses: ./.github/actions/container_registry_login
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build container
run: |
nix build .#libvirtd_base
gunzip < result > libvirtd_base.tar
crane push libvirtd_base.tar ghcr.io/edgelesssys/constellation/libvirtd-base
rm -f libvirtd_base.tar