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
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
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
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
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
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
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
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
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
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
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
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
Build image / build-image (pull_request) Failing after 7s
2025-10-06 00:39:05 +02:00
paul e79240cf76 fixup! fixup! fixup! fixup! fixup! Nix CI tryouts
Build image / build-image (pull_request) Has been cancelled
2025-10-06 00:33:54 +02:00
paul 36527da189 fixup! fixup! fixup! fixup! Nix CI tryouts
Build image / build-image (pull_request) Failing after 34s
2025-10-06 00:31:55 +02:00
paul d4a5b491cb fixup! fixup! fixup! Nix CI tryouts
Build image / build-image (pull_request) Failing after 15s
2025-10-06 00:24:12 +02:00
paul 9433106fcf fixup! fixup! Nix CI tryouts
Build image / build-image (pull_request) Failing after 32s
2025-10-06 00:21:20 +02:00
paul 3c09f04099 fixup! Nix CI tryouts
Build image / build-image (pull_request) Failing after 1s
2025-10-06 00:20:31 +02:00
paul aba2fa9b80 Nix CI tryouts
Build image / build-image (pull_request) Failing after 21s
2025-09-30 17:30:55 +02:00
2 changed files with 16 additions and 29 deletions
+13 -13
View File
@@ -6,35 +6,35 @@ on:
jobs: jobs:
build-image: build-image:
container: container:
image: node:24-bookworm image: catthehacker/ubuntu:act-latest
env: env:
USER: node USER: node
HOME: /home/node
NIX_CONFIG: experimental-features = nix-command flakes NIX_CONFIG: experimental-features = nix-command flakes
volumes: volumes:
- /home/paul/nix-ci/nix-runner-nix:/nix - /home/paul/nix-ci/nix-runner-nix:/nix
- /home/paul/nix-ci/nix-runner-etc-nix:/etc/nix - /home/paul/nix-ci/nix-runner-etc-nix:/etc/nix
- /home/paul/nix-ci/nix-runner-home-node:/home/node - /home/paul/nix-ci/nix-runner-home-node:/home/node
options: --user 1000:1000 --group-add 988 options: --user 1000:1000
steps: steps:
- name: Prep nix env - run: |
run: |
if [ ! -f ~/.nix-profile/etc/profile.d/nix.sh ]; then if [ ! -f ~/.nix-profile/etc/profile.d/nix.sh ]; then
curl -L https://nixos.org/nix/install | bash -s -- --no-daemon bash <(curl -L https://nixos.org/nix/install) --no-daemon
fi fi
. ~/.nix-profile/etc/profile.d/nix.sh
env >> "$GITHUB_ENV"
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v4 uses: actions/checkout@v4
- 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" ]
- run: nix build --log-format raw --print-build-logs .#image -o image.tar.gz - run: |
- run: gunzip -c image.tar.gz > image.tar . ~/.nix-profile/etc/profile.d/nix.sh
- run: nix run .#crane -- auth login git.pbrinkmeier.de -u paul -p "$PASSWORD" nix build --log-format raw --print-build-logs .#image -o image.tar.gz
- run: docker login -u paul -p "$PASSWORD" git.pbrinkmeier.de
env: env:
PASSWORD: "${{ secrets.REGISTRY_PASSWORD }}" PASSWORD: "${{ secrets.REGISTRY_PASSWORD }}"
- run: nix run .#crane -- push image.tar $(cat image-meta/name) - run: docker load < image.tar.gz
- run: docker image push $(cat image-meta/name)
+3 -16
View File
@@ -16,22 +16,15 @@
vrnp-static = pkgs.buildGoModule { vrnp-static = pkgs.buildGoModule {
pname = "vrnp"; pname = "vrnp";
version = "0.0.10-test"; version = "0.0.10";
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, flake.lock and .gitea 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 = ./.; src = gitignore.lib.gitignoreSource ./.;
filter = gitignore.lib.gitignoreFilterWith { filter = path: type: builtins.baseNameOf path != "flake.nix" && builtins.baseNameOf path != "flake.lock" && builtins.match "^\\.gitea.*" path != null;
basePath = ./.;
extraRules = ''
flake.nix
flake.lock
.gitea
'';
};
}; };
# Avoid linking against libc # Avoid linking against libc
@@ -62,12 +55,6 @@
config.Cmd = [ "${vrnp-static}/bin/vrnp" ]; config.Cmd = [ "${vrnp-static}/bin/vrnp" ];
}; };
}; };
apps = {
crane = {
type = "app";
program = "${pkgs.crane}/bin/crane";
};
};
} }
); );
} }