Only run pipeline when specific RUN_JOB variable value is set
This commit is contained in:
parent
221a596e27
commit
2c160015e6
|
@ -8,6 +8,8 @@ stages:
|
|||
|
||||
update_flake_lock:
|
||||
stage: update_flake_lock
|
||||
rules:
|
||||
- if: $RUN_JOB == "update_flake_lock"
|
||||
script:
|
||||
- nix flake update --extra-experimental-features nix-command --extra-experimental-features flakes
|
||||
artifacts:
|
||||
|
@ -16,6 +18,8 @@ update_flake_lock:
|
|||
|
||||
apply:
|
||||
stage: apply
|
||||
rules:
|
||||
- if: $RUN_JOB == "deploy"
|
||||
script:
|
||||
- nix-env --install colmena
|
||||
- eval $(ssh-agent -s)
|
||||
|
@ -30,6 +34,8 @@ apply:
|
|||
|
||||
commit_flake:
|
||||
stage: commit_flake
|
||||
rules:
|
||||
- if: $RUN_JOB == "update_flake_lock"
|
||||
variables:
|
||||
GIT_AUTHOR_EMAIL: $GIT_AUTHOR_EMAIL
|
||||
GIT_AUTHOR_NAME: $GIT_AUTHOR_NAME
|
||||
|
|
Loading…
Reference in a new issue