fix: put teh blockers for teh update of teh flakes first

This commit is contained in:
silver 2024-06-17 01:11:03 +00:00
parent c197f0df85
commit 6229abcefa

View file

@ -48,11 +48,11 @@ sync_repos:
- chmod +x ./sync.sh - chmod +x ./sync.sh
- ./sync.sh - ./sync.sh
rules: rules:
- if: $UPDATE_FLAKE == "yes"
when: never
- if: '$CI_PROJECT_NAMESPACE == "compsoc1/skynet" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' - if: '$CI_PROJECT_NAMESPACE == "compsoc1/skynet" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
changes: changes:
- sync/repos.csv - sync/repos.csv
- if: $UPDATE_FLAKE == "yes"
when: never
.scripts_base: &scripts_base .scripts_base: &scripts_base
# load nix environment # load nix environment
@ -79,6 +79,8 @@ sync_repos:
- *scripts_base - *scripts_base
- *scripts_cache - *scripts_cache
rules: rules:
- if: $UPDATE_FLAKE == "yes"
when: never
- changes: - changes:
- applications/**/* - applications/**/*
- machines/**/* - machines/**/*
@ -86,8 +88,6 @@ sync_repos:
- flake.* - flake.*
- .gitlab-ci.yml - .gitlab-ci.yml
- config/**/* - config/**/*
- if: $UPDATE_FLAKE == "yes"
when: never
# deploy items only run on main # deploy items only run on main
.deploy_template: &deployment .deploy_template: &deployment
@ -96,6 +96,8 @@ sync_repos:
- *scripts_base - *scripts_base
- *scripts_cache - *scripts_cache
rules: rules:
- if: $UPDATE_FLAKE == "yes"
when: never
- if: '$CI_PROJECT_NAMESPACE == "compsoc1/skynet" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' - if: '$CI_PROJECT_NAMESPACE == "compsoc1/skynet" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
changes: changes:
- flake.nix - flake.nix
@ -104,8 +106,6 @@ sync_repos:
- machines/**/* - machines/**/*
- secrets/**/* - secrets/**/*
- config/**/* - config/**/*
- if: $UPDATE_FLAKE == "yes"
when: never
linter: linter:
<<: *builder <<: *builder