ci: testing
This commit is contained in:
parent
758ac94af4
commit
37895e8e38
1 changed files with 2 additions and 4 deletions
|
@ -6,7 +6,7 @@ stages:
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
FLAKE_COMMIT: ""
|
FLAKE_COMMIT: "main"
|
||||||
|
|
||||||
# Update the flake for any changes upstream
|
# Update the flake for any changes upstream
|
||||||
# Passed in from upstream
|
# Passed in from upstream
|
||||||
|
@ -46,8 +46,7 @@ build:
|
||||||
stage: test
|
stage: test
|
||||||
before_script:
|
before_script:
|
||||||
- . "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
- . "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
||||||
# use the
|
# use the new flake
|
||||||
- git remote rm origin && git remote add origin ssh://git@gitlab.skynet.ie:2222/compsoc/skynet/nixos.git
|
|
||||||
- git pull origin $FLAKE_COMMIT
|
- git pull origin $FLAKE_COMMIT
|
||||||
script:
|
script:
|
||||||
- nix --experimental-features 'nix-command flakes' run nixpkgs#colmena -- build
|
- nix --experimental-features 'nix-command flakes' run nixpkgs#colmena -- build
|
||||||
|
@ -63,7 +62,6 @@ deploy:
|
||||||
- chmod 700 ~/.ssh
|
- chmod 700 ~/.ssh
|
||||||
# load nix environment
|
# load nix environment
|
||||||
- . "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
- . "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
||||||
- git remote rm origin && git remote add origin ssh://git@gitlab.skynet.ie:2222/compsoc/skynet/nixos.git
|
|
||||||
- git pull origin $FLAKE_COMMIT
|
- git pull origin $FLAKE_COMMIT
|
||||||
script:
|
script:
|
||||||
# dns is always deployed first
|
# dns is always deployed first
|
||||||
|
|
Loading…
Reference in a new issue