Compare commits
8 commits
d35d707490
...
74fd95ceff
Author | SHA1 | Date | |
---|---|---|---|
74fd95ceff | |||
feed48538c | |||
f046eb6555 | |||
6ce89c3c2d | |||
cfa9fcad70 | |||
513615c6eb | |||
d3ac56c8c4 | |||
f337d7e8c1 |
2 changed files with 22 additions and 4 deletions
|
@ -6,7 +6,6 @@ on:
|
||||||
- main
|
- main
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * 1,3,5"
|
- cron: "0 0 * * 1,3,5"
|
||||||
workflow_dispatch: {}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -18,7 +17,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: pre-requisites
|
- name: pre-requisites
|
||||||
run: |
|
run: |
|
||||||
nix-env -iA nixpkgs.docker nixpkgs.nodejs_20 nixpkgs.gnused nixpkgs.coreutils && mkdir -p ~/.config/nix && echo "experimental-features = nix-command flakes" > ~/.config/nix/nix.conf
|
nix-env -iA nixpkgs.docker nixpkgs.podman nixpkgs.nodejs_20 nixpkgs.gnused nixpkgs.coreutils && mkdir -p ~/.config/nix && echo "experimental-features = nix-command flakes" > ~/.config/nix/nix.conf
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
@ -26,7 +25,7 @@ jobs:
|
||||||
- name: nix package names
|
- name: nix package names
|
||||||
id: pkgs
|
id: pkgs
|
||||||
run: |
|
run: |
|
||||||
echo "pkgs-name=${{ matrix.container }}-${{ matrix.version }}" | tr -d . >>"${GITHUB_OUTPUT}""
|
echo "pkgs-name=${{ matrix.container }}-${{ matrix.version }}" | tr -d . >>"${GITHUB_OUTPUT}"
|
||||||
- name: build
|
- name: build
|
||||||
uses: actions/nix/build@main
|
uses: actions/nix/build@main
|
||||||
with:
|
with:
|
||||||
|
@ -34,4 +33,4 @@ jobs:
|
||||||
out-link: ${{ steps.pkgs.outputs.pkgs-name }}
|
out-link: ${{ steps.pkgs.outputs.pkgs-name }}
|
||||||
- name: load image into docker
|
- name: load image into docker
|
||||||
run: |
|
run: |
|
||||||
docker load < ${{ steps.pkg.outputs.pkg-name }}
|
podman load < ${{ steps.pkgs.outputs.pkgs-name }}
|
||||||
|
|
19
.forgejo/workflows/update.yaml
Normal file
19
.forgejo/workflows/update.yaml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
name: scheduled flake.lock update
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * 0,2,4"
|
||||||
|
workflow_dispatch: {}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
flake-lock-update:
|
||||||
|
runs-on: nixos-latest
|
||||||
|
steps:
|
||||||
|
- run: nix-env -iA nixpkgs.nodejs_20 nixpkgs.gnused nixpkgs.coreutils
|
||||||
|
- run: mkdir -p ~/.config/nix && echo "experimental-features = nix-command flakes" > ~/.config/nix/nix.conf
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: 'main'
|
||||||
|
- uses: actions/nix-flake-update-pr.git@main
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.FORGEJO_PR_TOKEN }}
|
||||||
|
author-email: flake@flyinggecko.org
|
Loading…
Add table
Reference in a new issue