1
0
mirror of https://gitlab.com/Anson-Projects/projects.git synced 2025-09-14 09:35:04 +00:00

Fix CI/CD job dependencies and YAML syntax

- Make deploy job dependency optional in ghost-upload jobs
- Change preview job to depend on staging instead of deploy
- Ensures pipeline works on feature branches without deploy job
This commit is contained in:
2025-08-21 23:41:48 -06:00
parent 1a4773b3ef
commit 788052233a
2 changed files with 7 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ preview:
- echo "Deploying branch preview..." - echo "Deploying branch preview..."
- echo "Preview available at preview URL" - echo "Preview available at preview URL"
needs: needs:
- deploy - staging
artifacts: artifacts:
paths: paths:
- public - public

View File

@@ -10,7 +10,9 @@ publish:
- cd ./ghost-upload - cd ./ghost-upload
- cargo run - cargo run
needs: needs:
- deploy - job: deploy
optional: true
- staging
# Manual trigger to force update all Ghost posts # Manual trigger to force update all Ghost posts
force-update-ghost: force-update-ghost:
@@ -21,13 +23,11 @@ force-update-ghost:
- cd ./ghost-upload - cd ./ghost-upload
- FORCE_UPDATE=true cargo run - FORCE_UPDATE=true cargo run
needs: needs:
- deploy - job: deploy
optional: true
- staging
rules: rules:
- when: manual - when: manual
allow_failure: false allow_failure: false
# rules:
# - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
# when: manual
# allow_failure: false
variables: variables:
FORCE_UPDATE: "true" FORCE_UPDATE: "true"