ci: only run on nix tags

This commit is contained in:
silver 2023-07-30 05:08:29 +01:00
parent 806da010c9
commit 7b2db16f08

View file

@ -11,6 +11,8 @@ stages:
# $UPDATE_FLAKE = flag to update the flake
update:
stage: flake
tags:
- nix
# from https://forum.gitlab.com/t/git-push-from-inside-a-gitlab-runner/30554/5
before_script:
# set teh ssh key for the commit
@ -39,6 +41,8 @@ update:
build:
stage: test
tags:
- nix
before_script:
- . "$HOME/.nix-profile/etc/profile.d/nix.sh"
# use the new flake
@ -56,6 +60,8 @@ build:
# every commit on main will build and deploy
deploy:
stage: deploy
tags:
- nix
before_script:
# setup ssh key
- eval $(ssh-agent -s)