From b3dd1db2a1d83aaa9ea6942998dcc4ef6d64a9a8 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 14 Jul 2024 20:51:30 +0200 Subject: [PATCH] WIP CI --- .forgejo/workflows/build.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .forgejo/workflows/build.yaml diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 0000000..43f0452 --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -0,0 +1,30 @@ +# SPDX-FileCopyrightText: 2024 Simon Bruder +# +# SPDX-License-Identifier: AGPL-3.0-or-later + +on: [push] + +jobs: + ls: + runs-on: docker + 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 .#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 }}"