switch image and use host network for complement

This commit is contained in:
morguldir 2025-04-19 03:58:53 +02:00
parent 5fef27759c
commit a67e210819
No known key found for this signature in database
GPG key ID: 5A6025D4F6E7A8A3

View file

@ -49,11 +49,13 @@ permissions: {}
jobs: jobs:
tests: tests:
name: Test name: Test
runs-on: [ubuntu-latest, dind, nix] runs-on: [tom, dind, nix]
container: container:
network: host
image: catthehacker/ubuntu:act-latest
volumes: volumes:
- /nix/store:/nix/store - /nix/store:/nix/store
- /nix/var/nix/db:/nix/var/nix/db - /nix/var/nix/db:/nix/var/nix/db
steps: steps:
- name: Setup SSH web publish - name: Setup SSH web publish
env: env:
@ -117,9 +119,10 @@ jobs:
- name: Prepare build environment - name: Prepare build environment
run: | run: |
df -h /nix/var/nix/db
du -shc /nix/* du -shc /nix/*
#du -shc /root/.profile/* #du -shc /root/.profile/*
if ! type nom &> /dev/null; then if ! command -v nom &> /dev/null; then
sudo cp $(which nix) /usr/bin/nom-or-nix sudo cp $(which nix) /usr/bin/nom-or-nix
fi fi
echo 'source $HOME/.nix-profile/share/nix-direnv/direnvrc' > "$HOME/.direnvrc" echo 'source $HOME/.nix-profile/share/nix-direnv/direnvrc' > "$HOME/.direnvrc"
@ -127,7 +130,7 @@ jobs:
direnv allow direnv allow
du -shc /nix/* du -shc /nix/*
if type nom &> /dev/null; then if command -v nom &> /dev/null; then
nom develop .#all-features --command true nom develop .#all-features --command true
else else
nix develop .#all-features --command true nix develop .#all-features --command true
@ -211,8 +214,9 @@ jobs:
build: build:
name: Build name: Build
runs-on: [not-nexy, nix, dind] runs-on: [tom, nix, dind]
container: container:
image: catthehacker/ubuntu:act-latest
volumes: volumes:
- /nix/store:/nix/store - /nix/store:/nix/store
- /nix/var/nix/db:/nix/var/nix/db - /nix/var/nix/db:/nix/var/nix/db