From e4fb62f1c99d65baefb97497229a7ee61d6c0b23 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 19 Jul 2024 15:29:24 +0200 Subject: [PATCH] Add CI workflow --- .forgejo/workflows/build.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..430e7d3 --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -0,0 +1,24 @@ +# SPDX-FileCopyrightText: 2024 Simon Bruder +# +# SPDX-License-Identifier: AGPL-3.0-or-later + +on: + push: + branches: + - master + +jobs: + build: + runs-on: nix + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Build + run: nix build -L .#li7y .#li7y-oci + - name: Push OCI image + run: | + nix build .#li7y-oci + podman image load -i ./result + podman tag li7y git.sbruder.de/simon/li7y:latest + podman login --username simon --password "${{ secrets.REGISTRY_PASSWORD }}" git.sbruder.de + podman push git.sbruder.de/simon/li7y:latest