ci: testing

This commit is contained in:
Brendan Golden 2023-07-27 20:19:33 +00:00
parent 758ac94af4
commit 37895e8e38

View file

@ -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