fix CI
This commit is contained in:
parent
d6651cbcf0
commit
06469a0f29
1 changed files with 16 additions and 20 deletions
|
|
@ -2,37 +2,33 @@ stages:
|
|||
- build
|
||||
- deploy
|
||||
|
||||
variables:
|
||||
LFTP_IMAGE: alpine/ftp
|
||||
|
||||
before_script:
|
||||
- apt-get lftp
|
||||
|
||||
build:
|
||||
stage: build
|
||||
image: php:8.2
|
||||
cache:
|
||||
key: ${CI_COMMIT_REF_SLUG}
|
||||
paths:
|
||||
- vendor/
|
||||
script:
|
||||
- composer install --no-dev --optimize-autoloader
|
||||
- composer install
|
||||
artifacts:
|
||||
paths:
|
||||
- dist/
|
||||
|
||||
deploy:
|
||||
stage: deploy
|
||||
image: alpine/ftp
|
||||
only:
|
||||
- main
|
||||
image: $LFTP_IMAGE
|
||||
script:
|
||||
- lftp -c "
|
||||
set ftp:ssl-allow no;
|
||||
open -u $USERNAME,$PASSWORD $HOST;
|
||||
mirror --reverse --verbose --ignore-time --parallel=10 assets assets;
|
||||
mirror --reverse --verbose --ignore-time --parallel=10 kirby kirby;
|
||||
mirror --reverse --verbose --ignore-time --parallel=10 -x accounts/ -x cache/ -x sessions/ site site;
|
||||
mirror --reverse --verbose --ignore-time --parallel=10 vendor vendor;
|
||||
- lftp -c "set ftp:ssl-allow no; open -u $USERNAME,$PASSWORD $HOST;
|
||||
|
||||
mirror --reverse --verbose --ignore-time --parallel=10
|
||||
assets assets;
|
||||
|
||||
mirror --reverse --verbose --ignore-time --parallel=10
|
||||
kirby kirby;
|
||||
|
||||
mirror --reverse --verbose --ignore-time --parallel=10
|
||||
-x accounts/ -x cache/ -x sessions/
|
||||
site site;
|
||||
|
||||
mirror --reverse --verbose --ignore-time --parallel=10
|
||||
vendor vendor;
|
||||
quit"
|
||||
- curl -sSf https://$HOST > /dev/null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue