ci: only run on nix tags
This commit is contained in:
parent
806da010c9
commit
7b2db16f08
1 changed files with 6 additions and 0 deletions
|
@ -11,6 +11,8 @@ stages:
|
||||||
# $UPDATE_FLAKE = flag to update the flake
|
# $UPDATE_FLAKE = flag to update the flake
|
||||||
update:
|
update:
|
||||||
stage: flake
|
stage: flake
|
||||||
|
tags:
|
||||||
|
- nix
|
||||||
# from https://forum.gitlab.com/t/git-push-from-inside-a-gitlab-runner/30554/5
|
# from https://forum.gitlab.com/t/git-push-from-inside-a-gitlab-runner/30554/5
|
||||||
before_script:
|
before_script:
|
||||||
# set teh ssh key for the commit
|
# set teh ssh key for the commit
|
||||||
|
@ -39,6 +41,8 @@ update:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: test
|
stage: test
|
||||||
|
tags:
|
||||||
|
- nix
|
||||||
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
|
||||||
|
@ -56,6 +60,8 @@ build:
|
||||||
# every commit on main will build and deploy
|
# every commit on main will build and deploy
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
tags:
|
||||||
|
- nix
|
||||||
before_script:
|
before_script:
|
||||||
# setup ssh key
|
# setup ssh key
|
||||||
- eval $(ssh-agent -s)
|
- eval $(ssh-agent -s)
|
||||||
|
|
Loading…
Reference in a new issue