From 158bdde14f1c5639d77d0ceab9d06502d267f2ff Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 19 Jul 2024 12:22:27 +0200 Subject: [PATCH] fixup! WIP CI --- .forgejo/workflows/build.yaml | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 43f0452..dfce842 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -5,26 +5,12 @@ on: [push] jobs: - ls: - runs-on: docker + build: + runs-on: nix steps: - - name: Prepare dependencies - run: apt-get update && apt-get install sudo - - name: Checkout - uses: https://code.forgejo.org/actions/checkout@v4 - - name: Install Nix - uses: https://github.com/cachix/install-nix-action@v27 - name: Build + run: nix build -L .#li7y .#li7y-oci + - name: Push OCI image run: | nix build .#li7y-oci podman image load -i ./result - - name: Push - id: push - uses: https://github.com/redhat-actions/push-to-registry@v2 - with: - image: ${{ steps.build-image.outputs.image }} - tags: ${{ steps.build-image.outputs.tags }} - username: simon - password: ${{ secrets.REGISTRY_PASSWORD }} - - name: Print image url - run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"