From 6e278268a6cdc9eebc3a499fdcc12a2c635f9bb0 Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Fri, 4 Oct 2024 11:00:26 +0000 Subject: [PATCH] ci: move cf-images to deploy job --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 47fbced..83da367 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,7 +18,6 @@ build: script: # Generate site - npm run build - - npm run deploy-cf-images rules: # Only trigger through push & "Run pipeline" events not in "site" branch; Skip in renovate job @@ -65,6 +64,7 @@ deploy: script: - 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/ + - npm run deploy-cf-images rules: - if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")'