next round
Some checks failed
Test action / Print hello world (push) Failing after 8s

This commit is contained in:
Chris Kruining 2025-09-04 13:09:31 +02:00
parent 833f4ce5e6
commit 25ae5ea1ac
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
2 changed files with 17 additions and 3 deletions

View file

@ -21,11 +21,24 @@ jobs:
run: | run: |
git clone https://${{ env.registry }}/${{ env.owner }}/sneeuwvlok.git . git clone https://${{ env.registry }}/${{ env.owner }}/sneeuwvlok.git .
- name: Install docker - name: Prepare podman
run: | run: |
nix-env -iA nixpkgs.podman nixpkgs.fuse # configure container policy to accept insecure registry
nix-env -iA nixpkgs.podman
# configure container policy to accept insecure registry
mkdir -p ~/.config/containers mkdir -p ~/.config/containers
echo '{ "default": [ {"type":"insecureAcceptAnything"} ] }' > ~/.config/containers/policy.json echo '{ "default": [ {"type":"insecureAcceptAnything"} ] }' > ~/.config/containers/policy.json
# ensure all required directories exist with proper permissions
mkdir -p /tmp/podman /var/tmp ~/.local/share/containers
chmod 755 /tmp/podman /var/tmp || true
# set multiple environment variables for skopeo temporary directories
export TMPDIR=/tmp/podman
export TMP=/tmp/podman
export TEMP=/tmp/podman
export XDG_RUNTIME_DIR=/tmp/podman
- name: Log into registry - name: Log into registry
run: | run: |
@ -34,6 +47,7 @@ jobs:
- name: Build image - name: Build image
run: >- run: >-
podman build podman build
--privileged
-t ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }} -t ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}
-f Dockerfile.default -f Dockerfile.default
modules/nixos/services/development/forgejo modules/nixos/services/development/forgejo

View file

@ -1,6 +1,6 @@
FROM docker.io/nixos/nix:latest FROM docker.io/nixos/nix:latest
RUN nix-env -iA nixpkgs.nodejs_24 nixpkgs.podman nixpkgs.fuse RUN nix-env -iA nixpkgs.nodejs_24 nixpkgs.podman
RUN echo "experimental-features = nix-command flakes pipe-operators" >> /etc/nix/nix.conf RUN echo "experimental-features = nix-command flakes pipe-operators" >> /etc/nix/nix.conf
RUN echo '{ "default": [ {"type":"insecureAcceptAnything"} ] }' >> /etc/containers/policy.json RUN echo '{ "default": [ {"type":"insecureAcceptAnything"} ] }' >> /etc/containers/policy.json