Compare commits
No commits in common. "2cf5ef343b6080409df321c673c9fce447f3fbc5" and "02dea6fe5c9fbdfe6a4ba43f0b972116ffd16c0d" have entirely different histories.
2cf5ef343b
...
02dea6fe5c
2 changed files with 15 additions and 13 deletions
|
@ -3,7 +3,7 @@ jobs:
|
||||||
push:
|
push:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: git.kun.is/home/forgejo-nix-action:687d16c49ea7936068bac64ec68c480a9d681962
|
image: git.kun.is/home/forgejo-nix-action:9b44b726c0b6eadc2e3006ec1fa1338a1a2e79f0
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
run: git clone https://git.kun.is/home/container-images.git checkout
|
run: git clone https://git.kun.is/home/container-images.git checkout
|
||||||
|
@ -12,19 +12,18 @@ jobs:
|
||||||
/bin/attic login local https://attic.kun.is ${{ secrets.ATTIC_TOKEN }}
|
/bin/attic login local https://attic.kun.is ${{ secrets.ATTIC_TOKEN }}
|
||||||
/bin/attic use home
|
/bin/attic use home
|
||||||
- name: Log into container registry
|
- name: Log into container registry
|
||||||
# run: echo -n "${{ secrets.RUNNER_TOKEN }}" | /bin/docker login https://git.kun.is --username pim --password-stdin
|
run: echo -n "${{ secrets.RUNNER_TOKEN }}" | /bin/docker login https://git.kun.is --username pim --password-stdin
|
||||||
run: /bin/skopeo login --username pim --password ${{ secrets.RUNNER_TOKEN }} https://git.kun.is
|
|
||||||
- name: Build Pim's blog
|
- name: Build Pim's blog
|
||||||
run: nix build --out-link blog-pim ./checkout#packages.x86_64-linux.blog-pim
|
run: nix build --extra-experimental-features nix-command --extra-experimental-features flakes --out-link blog-pim ./checkout#packages.x86_64-linux.blog-pim
|
||||||
- name: Push Pim's blog to Nix cache
|
- name: Push Pim's blog to Nix cache
|
||||||
run: /bin/attic push home blog-pim
|
run: /bin/attic push home blog-pim
|
||||||
- name: Push Pim's blog to container registry
|
- name: Push Pim's blog to container registry
|
||||||
run: nix run ./checkout#packages.x86_64-linux.release ./checkout#packages.x86_64-linux.blog-pim blog-pim ./checkout
|
run: nix --extra-experimental-features "nix-command flakes" run ./checkout#packages.x86_64-linux.release ./checkout#packages.x86_64-linux.blog-pim blog-pim ./checkout
|
||||||
- name: Build forgejo-nix-action
|
- name: Build forgejo-nix-action
|
||||||
run: nix build --no-allow-dirty --out-link forgejo-nix-action ./checkout#packages.x86_64-linux.forgejo-nix-action
|
run: nix build --extra-experimental-features nix-command --extra-experimental-features flakes --no-allow-dirty --out-link forgejo-nix-action ./checkout#packages.x86_64-linux.forgejo-nix-action
|
||||||
- name: Push forgjeo-nix-action to Nix cache
|
- name: Push forgjeo-nix-action to Nix cache
|
||||||
run: /bin/attic push home forgejo-nix-action
|
run: /bin/attic push home forgejo-nix-action
|
||||||
- name: Build Atticd
|
- name: Build Atticd
|
||||||
run: nix build --no-allow-dirty --out-link atticd ./checkout#packages.x86_64-linux.atticd
|
run: nix build --extra-experimental-features nix-command --extra-experimental-features flakes --no-allow-dirty --out-link atticd ./checkout#packages.x86_64-linux.atticd
|
||||||
- name: Push atticd to Nix cache
|
- name: Push atticd to Nix cache
|
||||||
run: /bin/attic push home atticd
|
run: /bin/attic push home atticd
|
||||||
|
|
|
@ -20,9 +20,7 @@ let
|
||||||
nixConfDrv = pkgs.stdenv.mkDerivation {
|
nixConfDrv = pkgs.stdenv.mkDerivation {
|
||||||
name = "nix.conf";
|
name = "nix.conf";
|
||||||
dontUnpack = true;
|
dontUnpack = true;
|
||||||
installPhase = ''
|
installPhase = "install -Dm755 ${nixConf} $out/etc/nix/nix.conf";
|
||||||
install -Dm755 ${nixConf} $out/etc/nix/nix.conf
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -33,9 +31,14 @@ in
|
||||||
|
|
||||||
copyToRoot = pkgs.buildEnv {
|
copyToRoot = pkgs.buildEnv {
|
||||||
name = "image-root";
|
name = "image-root";
|
||||||
# TODO: Maybe we don't even want these binaries in the base image, but run everything through nix-run?
|
paths = with pkgs; [ coreutils attic-client docker-client nixConfDrv ];
|
||||||
paths = with pkgs; [ coreutils attic-client skopeo nixConfDrv ];
|
pathsToLink = [ "/bin" "/etc/nix" ];
|
||||||
pathsToLink = [ "/bin" "/etc" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# config = {
|
||||||
|
# Env = [
|
||||||
|
# "PATH=/bin:/root/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin"
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
Reference in a new issue