ci: test 3

This commit is contained in:
Brendan Golden 2023-07-27 20:36:04 +00:00
parent bba0156cf8
commit 6b940f5693

View file

@ -48,7 +48,7 @@ build:
before_script: before_script:
- . "$HOME/.nix-profile/etc/profile.d/nix.sh" - . "$HOME/.nix-profile/etc/profile.d/nix.sh"
# use the new flake # use the new flake
- (if [ "$FLAKE_COMMIT" != "" ]; git pull origin $FLAKE_COMMIT; fi); - (if [ "$FLAKE_COMMIT" != "" ]; then git pull origin $FLAKE_COMMIT; fi);
script: script:
- nix --experimental-features 'nix-command flakes' run nixpkgs#colmena -- build - nix --experimental-features 'nix-command flakes' run nixpkgs#colmena -- build
@ -63,7 +63,7 @@ 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"
- (if [ "$FLAKE_COMMIT" != "" ]; git pull origin $FLAKE_COMMIT; fi); - (if [ "$FLAKE_COMMIT" != "" ]; then git pull origin $FLAKE_COMMIT; fi);
script: script:
# dns is always deployed first # dns is always deployed first
- nix --experimental-features 'nix-command flakes' run nixpkgs#colmena -- apply --on @active-dns - nix --experimental-features 'nix-command flakes' run nixpkgs#colmena -- apply --on @active-dns