From 60b242309ffa4a73c3b7cc8f0f7dc706dd9f17ba Mon Sep 17 00:00:00 2001 From: Francisco Javier Honduvilla Coto Date: Tue, 7 May 2024 10:10:21 +0100 Subject: [PATCH] ci: Build container image This is not pushing it yet to a container registry, but let's make sure that the image building rule works Test Plan ========= CI --- .github/workflows/container.yml | 22 +++++++++++++++++++ .github/workflows/static-build-and-upload.yml | 4 ++-- .github/workflows/vmtests.yml | 4 ++-- 3 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/container.yml diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml new file mode 100644 index 0000000..a72fa1e --- /dev/null +++ b/.github/workflows/container.yml @@ -0,0 +1,22 @@ +name: build container image +on: + pull_request: + push: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + container: + runs-on: ubuntu-22.04 + permissions: + id-token: write + contents: read + + steps: + - uses: actions/checkout@main + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main + - name: Build container image + run: nix build .#container \ No newline at end of file diff --git a/.github/workflows/static-build-and-upload.yml b/.github/workflows/static-build-and-upload.yml index 2121997..33cfe84 100644 --- a/.github/workflows/static-build-and-upload.yml +++ b/.github/workflows/static-build-and-upload.yml @@ -1,7 +1,7 @@ name: static build and upload on: - pull_request: - push: + pull_request: + push: concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/vmtests.yml b/.github/workflows/vmtests.yml index a3f4d32..b275f48 100644 --- a/.github/workflows/vmtests.yml +++ b/.github/workflows/vmtests.yml @@ -1,7 +1,7 @@ name: vmtests on: - pull_request: - push: + pull_request: + push: concurrency: group: ${{ github.workflow }}-${{ github.ref }}