add CI images to repo
Some checks failed
/ check (push) Has been cancelled
build / nvim-bundle (nvim) (push) Successful in 29m37s

This commit is contained in:
iofq 2026-02-28 00:01:58 -06:00
parent abce966b76
commit 994fdefcd6
8 changed files with 104 additions and 11 deletions

View file

@ -0,0 +1,21 @@
on:
push:
branches: [main]
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:
jobs:
check:
runs-on: nix-upstream-latest
steps:
- run: echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
- run: nix-env -i nodejs skopeo # bootstrap
- uses: actions/checkout@v4
- run: mkdir -p /etc/containers && cp .forgejo/default-policy.json /etc/containers/policy.json
- run: |-
for line in $(cat .forgejo/tags.txt); do
IFS=: read -r pkg tag <<< $line
cp $(nix build .#$pkg --print-out-paths) /tmp/img.tar.gz
gunzip /tmp/img.tar.gz
skopeo copy --dest-creds="${{ secrets.FJ_USER }}:${{ secrets.FJ_PASS }}" docker-archive:///tmp/img.tar docker://git.10110110.xyz/ci/$tag:latest
done

View file

@ -2,23 +2,24 @@ name: build
on:
push:
branches:
- main
branches: [main]
jobs:
build:
runs-on: nix-latest
nvim-bundle:
runs-on: nix-upstream-latest
strategy:
matrix:
package_name: ["nvim"]
steps:
- run: echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
- run: nix-env -i nodejs
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- name: check
- name: nix flake check
run: nix flake check
- name: Run `nix bundle`
if: github.ref == 'refs/heads/main'
id: build
run: |
groups nixbld1
nix bundle \
-o ${{ matrix.package_name }}.AppImage \
--bundler github:ralismark/nix-appimage \