-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wip] libvirt: build containerized libvirt as nix container image
- Loading branch information
Showing
17 changed files
with
244 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Build libvirtd base container | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
# TODO(malt3): remove. Allows testing this PR | ||
- feat/bazel/use-cc-libraries-from-nix | ||
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@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | ||
|
||
- name: Setup bazel | ||
uses: ./.github/actions/setup_bazel_nix | ||
with: | ||
useCache: "false" | ||
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 | ||
cat result | gunzip > libvirtd_base.tar | ||
crane push libvirtd_base.tar ghcr.io/edgelesssys/constellation/libvirtd-base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.