From 97c7305396514ba1d7fa4222ba5f198b6ff870b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 3 Jun 2023 10:48:41 +0100 Subject: [PATCH] try to run the checks on ci --- .gitea/workflows/build.yaml | 35 +++++++++++------------ nixos/boxes/bolty/gitea-runner-token.sops | 6 ++-- nixos/boxes/bolty/gitea-runner.nix | 5 ++-- 3 files changed, 22 insertions(+), 24 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 27ae98fc..0f7f7232 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,19 +1,18 @@ -name: Gitea Actions Demo -run-name: ${{ github.actor }} is testing out Gitea Actions 🚀 -on: [push] -jobs: - Explore-Gitea-Actions: - runs-on: node-latest - steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - name: Check out repository code - uses: actions/checkout@v3 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ github.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." +name: use nix +on: push +env: + DEV_SHELL_NAME: CI +jobs: + build: + runs-on: nix-node + + steps: + - uses: actions/checkout@v3 + - uses: https://github.com/workflow/nix-shell-action@v3 + with: + flakes: .#devShells.x86_64-linux.default + script: | + nix flake metadata + nix --no-sandbox develop -c statix check + nix flake check diff --git a/nixos/boxes/bolty/gitea-runner-token.sops b/nixos/boxes/bolty/gitea-runner-token.sops index 26302ab7..c6af6819 100644 --- a/nixos/boxes/bolty/gitea-runner-token.sops +++ b/nixos/boxes/bolty/gitea-runner-token.sops @@ -1,5 +1,5 @@ { - "data": "ENC[AES256_GCM,data:2PdY9zSyjmGsHXEYkUBy3gdZ797GsgoZREdEpNhrD9J39C+kcfzcb84tartOHNEk,iv:kcHV0oMmfTZzc/O3W4wgA35AS+GnD8jQ+F1Sf8hhpB8=,tag:5Wqm/vjA8bScq7HGASP/8A==,type:str]", + "data": "ENC[AES256_GCM,data:xTGgkaCxOBdMx/Q7zCTmcytr3IMzfDOqU8JrrkU8I78SljRGEPNz7LdDzv52PlfpUg==,iv:1gRhRf+qaQkUAh1zdvkRdjoi8wm6fRZbfMqU3DWS0pg=,tag:jHSqGOUPKtHTVGJujmOUzA==,type:str]", "sops": { "kms": null, "gcp_kms": null, @@ -47,8 +47,8 @@ "enc": "-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBRTXVwRzVSd2NSSi90SVVu\na05jeitPNnE5TVJ1NXk5WGd6UnhObUwveHg0CjU0dTNxUUdtb253ZHdTMFkycWdI\nbjZsanUwSGdHcFZkckIrRDRTWldha3cKLS0tIE8wM09WMnhNeklnYytUWkVTc01E\neldXYlJXRm1OMWo0T1U3UlY4SFBndVEKs56uk3j02g1g7Ae16UGfwRQJghPvS8iG\nDcIrJp6tb5ToYKeAGcTDpDvaQeNWKBX6fSLVIiJbgDWIbbZp1HRYpw==\n-----END AGE ENCRYPTED FILE-----\n" } ], - "lastmodified": "2023-06-02T11:27:42Z", - "mac": "ENC[AES256_GCM,data:F7VcjeG5D2S7zWK7S7wji5udaQlcnk9kpFE9G0f86uYZ86XDa+lxaXoF94xOBouJlYS5US5nJfaNxHLka0kO/HEJYNV9aVrB+At8WCsx04Gjt6fNB1APQULvVCzkYYNc6bFQ2KSPXMoSfdALxr1L7WMCDxjPYLYcPCejdW50eK0=,iv:XDdFrWFGTzT+JBAOZ0xWTgBAEpHnDNf2Mm046fQi+YE=,tag:9lcTT01NGsA+mmj6ZlLVVg==,type:str]", + "lastmodified": "2023-06-03T10:42:06Z", + "mac": "ENC[AES256_GCM,data:EWNq6e7MwoCVf+67ABItZLonhtXCi+/2MHx5tq0F/Ub2My4VyRusEnQIoEGAJNn+vxo8Nd+ZY1EdPEZWqvGe/fmg5aWenoVJzdZHecock37PfZ4se0txSj35EqUFBtOjN5UfP++5HzVXBBXiNY/7HrhDIBScqH/YHCtlZyZR5OY=,iv:cT9IB83vY9iJsXCM0wX5hylaKXQWhqDeH0xtJoeVVng=,tag:pv5W+duzFzY7zV9XhbaBfw==,type:str]", "pgp": null, "unencrypted_suffix": "_unencrypted", "version": "3.7.3" diff --git a/nixos/boxes/bolty/gitea-runner.nix b/nixos/boxes/bolty/gitea-runner.nix index 55fd8808..8c158128 100644 --- a/nixos/boxes/bolty/gitea-runner.nix +++ b/nixos/boxes/bolty/gitea-runner.nix @@ -13,9 +13,8 @@ tokenFile = config.sops.secrets."gitea-runner-token".path; name = "bolty1"; labels = [ - "nix:docker://nixpkgs/nix-flakes:latest" - "node-latest:docker://node:latest" - "ubuntu-latest:docker://ubuntu:latest" + "nix-node:docker://nixery.dev/shell/nix/git/nodejs:latest" + "ubuntu-latest:docker://node:current-bullseye" # compat with github actions ]; }; }