Compare commits
3 commits
cc5cad8c31
...
746fb278d0
Author | SHA1 | Date | |
---|---|---|---|
746fb278d0 | |||
c51064fb17 | |||
4bb0e5b996 |
3 changed files with 8 additions and 4 deletions
|
@ -19,7 +19,7 @@ begin
|
||||||
echo "{}" | sudo tee "$config" >/dev/null
|
echo "{}" | sudo tee "$config" >/dev/null
|
||||||
echo "{}" | sudo tee "$overrides" >/dev/null
|
echo "{}" | sudo tee "$overrides" >/dev/null
|
||||||
|
|
||||||
cp "$dir"/{ci.Dockerfile,docker-compose.core.yml,.dockerignore} "$root"
|
sudo cp "$dir"/{ci.Dockerfile,docker-compose.core.yml,.dockerignore} "$root"
|
||||||
echo "DRONE_JSONNET_ENABLED=true" | sudo tee "$root/server.common.env" >/dev/null
|
echo "DRONE_JSONNET_ENABLED=true" | sudo tee "$root/server.common.env" >/dev/null
|
||||||
echo "DRONE_RUNNER_CAPACITY=2" | sudo tee "$root/runner.common.env" >/dev/null
|
echo "DRONE_RUNNER_CAPACITY=2" | sudo tee "$root/runner.common.env" >/dev/null
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
set projectName port-valhalla
|
set projectName port-valhalla
|
||||||
set nixPkgsVersion nixos-24.11
|
set nixPkgsVersion 566e53c2ad750c84f6d31f9ccb9d00f823165550
|
||||||
set valhallaCache ~/".cache/$projectName"
|
set valhallaCache ~/".cache/$projectName"
|
||||||
set nixPkgsCache "$valhallaCache/nixpkgs/$nixPkgsVersion"
|
set nixPkgsCache "$valhallaCache/nixpkgs/$nixPkgsVersion"
|
||||||
|
|
|
@ -11,8 +11,12 @@ begin
|
||||||
source "$config"
|
source "$config"
|
||||||
|
|
||||||
if ! __isNixModule "$nixPkgsCache"
|
if ! __isNixModule "$nixPkgsCache"
|
||||||
mkdir -p "$nixPkgsCache"
|
rm -rf "$nixPkgsCache"
|
||||||
and git clone https://github.com/NixOS/nixpkgs.git --depth=1 -b "$nixPkgsVersion" "$nixPkgsCache"
|
and mkdir -p "$nixPkgsCache"
|
||||||
|
and git -C "$nixPkgsCache" init
|
||||||
|
and git -C "$nixPkgsCache" remote add origin https://github.com/NixOS/nixpkgs.git
|
||||||
|
and git -C "$nixPkgsCache" fetch origin "$nixPkgsVersion"
|
||||||
|
and git -C "$nixPkgsCache" reset --hard FETCH_HEAD
|
||||||
and rm -rf "$nixPkgsCache/.git"
|
and rm -rf "$nixPkgsCache/.git"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue