ci: move cf-images to deploy job

This commit is contained in:
Ming Di Leom 2024-10-04 11:00:26 +00:00
parent 2730e463db
commit 6e278268a6
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,6 @@ build:
script: script:
# Generate site # Generate site
- npm run build - npm run build
- npm run deploy-cf-images
rules: rules:
# Only trigger through push & "Run pipeline" events not in "site" branch; Skip in renovate job # Only trigger through push & "Run pipeline" events not in "site" branch; Skip in renovate job
@ -65,6 +64,7 @@ deploy:
script: script:
- rsync -azvh --delete --exclude-from "rsync-exclude.txt" public/ host-1:/var/www/ - rsync -azvh --delete --exclude-from "rsync-exclude.txt" public/ host-1:/var/www/
- rsync -azvh --delete --exclude-from "rsync-exclude.txt" public/ host-2:/var/www/ - rsync -azvh --delete --exclude-from "rsync-exclude.txt" public/ host-2:/var/www/
- npm run deploy-cf-images
rules: rules:
- if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")' - if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")'