Compare commits
2 commits
8b42a81a8e
...
92883b400f
Author | SHA1 | Date | |
---|---|---|---|
92883b400f | |||
7473d91888 |
1 changed files with 3 additions and 2 deletions
|
@ -8,13 +8,14 @@
|
|||
# SSH. The token should be passed as the GIT_PASSWORD environment variable.
|
||||
# [1] https://git.caspervk.net/user/settings/applications
|
||||
|
||||
FROM nixos/nix:2.21.0
|
||||
FROM nixos/nix:latest
|
||||
|
||||
CMD git clone https://caspervk:$GIT_PASSWORD@git.caspervk.net/caspervk/nixos.git && \
|
||||
cd nixos/ && \
|
||||
git config user.email "snowflake@caspervk.net" && \
|
||||
git config user.name "snowflake" && \
|
||||
nix --extra-experimental-features nix-command --extra-experimental-features flakes flake update --commit-lock-file && \
|
||||
# store in /dev/shm tmpfs to avoid an ever-growing nix store in the container
|
||||
nix --extra-experimental-features nix-command --extra-experimental-features flakes flake update --commit-lock-file --store /dev/shm && \
|
||||
git push && \
|
||||
cd .. && \
|
||||
rm -rf nixos/ && \
|
||||
|
|
Loading…
Reference in a new issue