mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-25 23:49:37 -05:00
d76c9ac82d
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
44 lines
1.1 KiB
YAML
44 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-22.04
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
|
|
|
|
- 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
|