From 7b2db16f088425c9c973a246f903892bde121a74 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sun, 30 Jul 2023 05:08:29 +0100 Subject: [PATCH] ci: only run on nix tags --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1db7784..dc921cd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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)