2024-08-06 23:32:41 +00:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
input_to_update:
|
|
|
|
description: 'Flake input to update'
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
update:
|
2024-08-07 00:47:14 +00:00
|
|
|
runs-on: ubuntu-latest
|
2024-08-06 23:57:54 +00:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
# Give the default GITHUB_TOKEN write permission to commit and push the
|
|
|
|
# added or changed files to the repository.
|
|
|
|
contents: write
|
|
|
|
|
2024-08-06 23:32:41 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-08-07 01:00:07 +00:00
|
|
|
- name: Install sudo package
|
|
|
|
run: apt update && apt install sudo
|
2024-08-07 00:31:05 +00:00
|
|
|
- uses: https://github.com/cachix/install-nix-action@v27
|
|
|
|
with:
|
2024-08-07 00:56:50 +00:00
|
|
|
#nix_path: nixpkgs=channel:nixos-unstable
|
2024-08-07 00:40:48 +00:00
|
|
|
extra_nix_config: |
|
|
|
|
trusted-public-keys = skynet-cache:zMFLzcRZPhUpjXUy8SF8Cf7KGAZwo98SKrzeXvdWABo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
|
|
|
|
substituters = https://nix-cache.skynet.ie https://cache.nixos.org/
|
2024-08-07 00:07:57 +00:00
|
|
|
- run: nix flake lock --update-input "${{ inputs.input_to_update }}"
|
2024-08-06 23:57:54 +00:00
|
|
|
shell: bash
|
2024-08-07 00:17:53 +00:00
|
|
|
- run: |
|
2024-08-07 00:31:05 +00:00
|
|
|
nix develop
|
2024-08-07 00:22:34 +00:00
|
|
|
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
|
2024-08-07 00:17:53 +00:00
|
|
|
shell: bash
|
2024-08-07 01:04:53 +00:00
|
|
|
- run: |
|
|
|
|
attic login skynet https://nix-cache.skynet.ie/ $CACHE_KEY
|
|
|
|
attic use skynet-cache
|
|
|
|
attic push skynet-cache $(ls -d /nix/store/*/)
|
|
|
|
shell: bash
|
2024-08-07 00:17:53 +00:00
|
|
|
#- uses: https://github.com/stefanzweifel/git-auto-commit-action@v5
|