Compare commits

...

19 Commits

Author SHA1 Message Date
Paul Brinkmeier
8c128c572e fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Nix CI tryouts 2025-10-06 01:30:31 +02:00
Paul Brinkmeier
0c5bf1e858 fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Nix CI tryouts
All checks were successful
Build image / build-image (pull_request) Successful in 4m13s
2025-10-06 01:11:04 +02:00
Paul Brinkmeier
8e115829dd fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Nix CI tryouts
Some checks failed
Build image / build-image (pull_request) Failing after 12s
2025-10-06 01:09:07 +02:00
Paul Brinkmeier
4795db56e7 fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Nix CI tryouts
All checks were successful
Build image / build-image (pull_request) Successful in 54s
2025-10-06 01:06:24 +02:00
Paul Brinkmeier
aae82e47e6 fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Nix CI tryouts
All checks were successful
Build image / build-image (pull_request) Successful in 53s
2025-10-06 01:04:17 +02:00
Paul Brinkmeier
d790ddfa8c fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Nix CI tryouts
Some checks failed
Build image / build-image (pull_request) Failing after 10s
2025-10-06 01:02:58 +02:00
Paul Brinkmeier
60c276e6fd fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Nix CI tryouts
Some checks failed
Build image / build-image (pull_request) Failing after 8s
2025-10-06 01:02:07 +02:00
Paul Brinkmeier
fe88aa0c53 fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Nix CI tryouts
All checks were successful
Build image / build-image (pull_request) Successful in 3m35s
2025-10-06 00:54:45 +02:00
Paul Brinkmeier
065f9f7705 fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Nix CI tryouts
Some checks failed
Build image / build-image (pull_request) Failing after 30s
2025-10-06 00:51:23 +02:00
Paul Brinkmeier
6ab09ebe99 fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Nix CI tryouts
Some checks failed
Build image / build-image (pull_request) Failing after 22s
2025-10-06 00:46:20 +02:00
Paul Brinkmeier
401fcb21ec fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Nix CI tryouts
Some checks failed
Build image / build-image (pull_request) Failing after 12s
2025-10-06 00:44:25 +02:00
Paul Brinkmeier
543dbbabe7 fixup! fixup! fixup! fixup! fixup! fixup! fixup! Nix CI tryouts
Some checks failed
Build image / build-image (pull_request) Failing after 16s
2025-10-06 00:39:49 +02:00
Paul Brinkmeier
d0219ab32c fixup! fixup! fixup! fixup! fixup! fixup! Nix CI tryouts
Some checks failed
Build image / build-image (pull_request) Failing after 7s
2025-10-06 00:39:05 +02:00
e79240cf76 fixup! fixup! fixup! fixup! fixup! Nix CI tryouts
Some checks failed
Build image / build-image (pull_request) Has been cancelled
2025-10-06 00:33:54 +02:00
36527da189 fixup! fixup! fixup! fixup! Nix CI tryouts
Some checks failed
Build image / build-image (pull_request) Failing after 34s
2025-10-06 00:31:55 +02:00
d4a5b491cb fixup! fixup! fixup! Nix CI tryouts
Some checks failed
Build image / build-image (pull_request) Failing after 15s
2025-10-06 00:24:12 +02:00
9433106fcf fixup! fixup! Nix CI tryouts
Some checks failed
Build image / build-image (pull_request) Failing after 32s
2025-10-06 00:21:20 +02:00
3c09f04099 fixup! Nix CI tryouts
Some checks failed
Build image / build-image (pull_request) Failing after 1s
2025-10-06 00:20:31 +02:00
aba2fa9b80 Nix CI tryouts
Some checks failed
Build image / build-image (pull_request) Failing after 21s
2025-09-30 17:30:55 +02:00
2 changed files with 20 additions and 12 deletions

View File

@ -7,24 +7,32 @@ jobs:
build-image: build-image:
container: container:
image: catthehacker/ubuntu:act-latest image: catthehacker/ubuntu:act-latest
env:
USER: node
NIX_CONFIG: experimental-features = nix-command flakes
volumes:
- /home/paul/nix-ci/nix-runner-nix:/nix
- /home/paul/nix-ci/nix-runner-etc-nix:/etc/nix
- /home/paul/nix-ci/nix-runner-home-node:/home/node
options: --user 1000:1000
steps: steps:
- run: |
if [ ! -f ~/.nix-profile/etc/profile.d/nix.sh ]; then
bash <(curl -L https://nixos.org/nix/install) --no-daemon
fi
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v4 uses: actions/checkout@v4
# Required for installing nix
- name: Install sudo
run: apt-get update && apt-get install -y sudo
- name: Install Nix
uses: cachix/install-nix-action@v31
with:
enable_kvm: false
- name: Get image meta - name: Get image meta
run: nix build .#image-meta -o image-meta run: |
. ~/.nix-profile/etc/profile.d/nix.sh
nix build .#image-meta -o image-meta
- name: Version check - name: Version check
run: | run: |
VERSION=$(cat image-meta/version) VERSION=$(cat image-meta/version)
[ "$GITHUB_REF_NAME" = v"$VERSION" ] [ "$GITHUB_REF_NAME" = v"$VERSION" ]
- name: Build image - run: |
run: nix build .#image -o image.tar.gz . ~/.nix-profile/etc/profile.d/nix.sh
nix build --log-format raw --print-build-logs .#image -o image.tar.gz
- run: docker login -u paul -p "$PASSWORD" git.pbrinkmeier.de - run: docker login -u paul -p "$PASSWORD" git.pbrinkmeier.de
env: env:
PASSWORD: "${{ secrets.REGISTRY_PASSWORD }}" PASSWORD: "${{ secrets.REGISTRY_PASSWORD }}"

View File

@ -20,11 +20,11 @@
vendorHash = null; vendorHash = null;
# For building the package, we use only the files not ignored by Git as inputs. # For building the package, we use only the files not ignored by Git as inputs.
# Also, flake.nix and flake.lock are not included to avoid annoying rebuilds when # Also, flake.nix, flake.lock and .gitea are not included to avoid annoying rebuilds when
# working on them. # working on them.
src = pkgs.lib.cleanSourceWith { src = pkgs.lib.cleanSourceWith {
src = gitignore.lib.gitignoreSource ./.; src = gitignore.lib.gitignoreSource ./.;
filter = path: type: builtins.baseNameOf path != "flake.nix" && builtins.baseNameOf path != "flake.lock"; filter = path: type: builtins.baseNameOf path != "flake.nix" && builtins.baseNameOf path != "flake.lock" && builtins.match "^\\.gitea.*" path != null;
}; };
# Avoid linking against libc # Avoid linking against libc