fix?
Some checks failed
Test action / Print hello world (push) Failing after 30s

This commit is contained in:
Chris Kruining 2025-09-04 14:53:50 +02:00
parent b158df262e
commit 09a5df6253
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
2 changed files with 27 additions and 2 deletions

View file

@ -59,6 +59,7 @@ jobs:
- name: Push image
run: >-
podman push
--auth-file=${XDG_RUNTIME_DIR}/containers/auth.json&
--creds="${{ forge.actor }}:${{ forge.token }}"
localhost/default:latest
${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}

View file

@ -3,11 +3,35 @@
pkgs_linux ? import <nixpkgs> { system = "x86_64-linux"; },
}:
pkgs.dockerTools.buildImage {
with pkgs;
dockerTools.buildImage {
name = "default";
tag = "latest";
contents = [
coreutils
u-root-cmds
bash
nix
nodejs
podman
];
runAsRoot = ''
#!${stdenv.shell}
${dockerTools.shadowSetup}
groupadd -r runner
useradd -r -g runner -d /data -M runner
mkdir /data
chown runner:runner /data
'';
config = {
Cmd = [ "${pkgs_linux.hello}/bin/hello" ];
# User = "root";
Cmd = [ "${lib.getExe bashInteractive}" ];
WorkingDir = "/data";
Volumes = {
"/data" = {};
};
};
}