From ee407bcee7760bdea2161982aab4486b227df884 Mon Sep 17 00:00:00 2001 From: silver Date: Wed, 7 Aug 2024 01:39:30 +0000 Subject: [PATCH] Update .forgejo/workflows/update_input.yaml Signed-off-by: silver --- .forgejo/workflows/update_input.yaml | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/.forgejo/workflows/update_input.yaml b/.forgejo/workflows/update_input.yaml index b5e07bb..fb0ff4b 100644 --- a/.forgejo/workflows/update_input.yaml +++ b/.forgejo/workflows/update_input.yaml @@ -19,7 +19,7 @@ on: jobs: update: - runs-on: ubuntu-latest + runs-on: nix permissions: # Give the default GITHUB_TOKEN write permission to commit and push the @@ -28,27 +28,19 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install sudo package - run: apt update && apt install sudo - - uses: https://github.com/cachix/install-nix-action@v27 - with: - #nix_path: nixpkgs=channel:nixos-unstable - extra_nix_config: | - trusted-public-keys = skynet-cache:zMFLzcRZPhUpjXUy8SF8Cf7KGAZwo98SKrzeXvdWABo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= - substituters = https://nix-cache.skynet.ie/skynet-cache https://cache.nixos.org/ + #trusted-public-keys = skynet-cache:zMFLzcRZPhUpjXUy8SF8Cf7KGAZwo98SKrzeXvdWABo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= + #substituters = https://nix-cache.skynet.ie/skynet-cache https://cache.nixos.org/ - run: nix flake lock --update-input "${{ inputs.input_to_update }}" shell: bash - run: | - nix profile install nixpkgs#colmena - nix profile install nixpkgs#attic-client attic login skynet https://nix-cache.skynet.ie/ $CACHE_KEY attic use skynet-cache nix develop --accept-flake-config - colmena build -v --on @active-dns --accept-flake-config - colmena build -v --on @active-core --accept-flake-config - colmena build -v --on @active --accept-flake-config - colmena build -v --on @active-ext --accept-flake-config - colmena build -v --on @active-gitlab --accept-flake-config - attic push skynet-cache $(ls -d /nix/store/*/) --accept-flake-config + colmena build -v --on @active-dns + colmena build -v --on @active-core + colmena build -v --on @active + colmena build -v --on @active-ext + colmena build -v --on @active-gitlab + attic push skynet-cache $(ls -d /nix/store/*/) shell: bash #- uses: https://github.com/stefanzweifel/git-auto-commit-action@v5 \ No newline at end of file