Update .forgejo/workflows/update_input.yaml
Signed-off-by: silver <silver@skynet.ie>
This commit is contained in:
parent
8a19ede87c
commit
c90fd1018a
1 changed files with 22 additions and 9 deletions
|
@ -1,3 +1,14 @@
|
||||||
|
pipeline:
|
||||||
|
run-greet:
|
||||||
|
image: nixos/nix
|
||||||
|
commands:
|
||||||
|
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
||||||
|
- nix run --store unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt .#greet -L
|
||||||
|
volumes:
|
||||||
|
- /nix:/mnt/nix:ro
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -8,7 +19,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update:
|
update:
|
||||||
runs-on: nix
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
# Give the default GITHUB_TOKEN write permission to commit and push the
|
# Give the default GITHUB_TOKEN write permission to commit and push the
|
||||||
|
@ -17,17 +28,19 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
#- name: Install sudo package
|
- name: Install sudo package
|
||||||
# run: apt update && apt install sudo
|
run: apt update && apt install sudo
|
||||||
#- uses: https://github.com/cachix/install-nix-action@v27
|
- uses: https://github.com/cachix/install-nix-action@v27
|
||||||
# with:
|
with:
|
||||||
# #nix_path: nixpkgs=channel:nixos-unstable
|
#nix_path: nixpkgs=channel:nixos-unstable
|
||||||
# extra_nix_config: |
|
extra_nix_config: |
|
||||||
# trusted-public-keys = skynet-cache:zMFLzcRZPhUpjXUy8SF8Cf7KGAZwo98SKrzeXvdWABo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
|
trusted-public-keys = skynet-cache:zMFLzcRZPhUpjXUy8SF8Cf7KGAZwo98SKrzeXvdWABo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
|
||||||
# substituters = https://nix-cache.skynet.ie https://cache.nixos.org/
|
substituters = https://nix-cache.skynet.ie/skynet-cache https://cache.nixos.org/
|
||||||
- run: nix flake lock --update-input "${{ inputs.input_to_update }}"
|
- run: nix flake lock --update-input "${{ inputs.input_to_update }}"
|
||||||
shell: bash
|
shell: bash
|
||||||
- run: |
|
- run: |
|
||||||
|
nix profile install nixpkgs#colmena
|
||||||
|
nix profile install nixpkgs#attic-client
|
||||||
attic login skynet https://nix-cache.skynet.ie/ $CACHE_KEY
|
attic login skynet https://nix-cache.skynet.ie/ $CACHE_KEY
|
||||||
attic use skynet-cache
|
attic use skynet-cache
|
||||||
nix develop --accept-flake-config
|
nix develop --accept-flake-config
|
||||||
|
|
Loading…
Reference in a new issue