From 25f08d71822f0118e4f0b00c2df4d2b846a6f684 Mon Sep 17 00:00:00 2001 From: HaimKortovich Date: Tue, 14 Apr 2026 11:09:24 -0500 Subject: [PATCH] run on nix runner --- .gitea/workflows/build-and-publish.yaml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/build-and-publish.yaml b/.gitea/workflows/build-and-publish.yaml index c898ba8..1ee79cb 100644 --- a/.gitea/workflows/build-and-publish.yaml +++ b/.gitea/workflows/build-and-publish.yaml @@ -8,30 +8,21 @@ env: IMAGE_NAME: ${{ github.event.repository.name }} jobs: build-release: - runs-on: ubuntu-latest + runs-on: nix permissions: id-token: write contents: read steps: - name: Checkout repository uses: actions/checkout@v4 - - - uses: DeterminateSystems/determinate-nix-action@v3 - uses: DeterminateSystems/flake-checker-action@main with: flake-lock-path: ./flake.lock - - name: Setup Attic cache - uses: ryanccn/attic-action@v0 - with: - endpoint: ${{ secrets.ATTIC_ENDPOINT }} - cache: ${{ secrets.ATTIC_CACHE }} - token: ${{ secrets.ATTIC_TOKEN }} - - name: Build Docker Image via Nix Flake run: | - NIX_BUILD_CORES=2 nix build .#dockerImage --max-jobs 2 --print-build-logs + nix build .#dockerImage -print-build-logs docker load < result - name: Push closure to Attic cache @@ -80,4 +71,4 @@ jobs: curl -f --user "${{ secrets.CI_USER }}:${{ secrets.CI_PASSWORD }}" \ -X POST \ --upload-file ./$CHART_FILE \ - "${{ github.server_url }}/api/packages/${{ github.repository_owner }}/helm/api/charts" \ No newline at end of file + "${{ github.server_url }}/api/packages/${{ github.repository_owner }}/helm/api/charts"