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
|
- build
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
variables:
|
|
||||||
LFTP_IMAGE: alpine/ftp
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- apt-get lftp
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
image: php:8.2
|
image: php:8.2
|
||||||
cache:
|
|
||||||
key: ${CI_COMMIT_REF_SLUG}
|
|
||||||
paths:
|
|
||||||
- vendor/
|
|
||||||
script:
|
script:
|
||||||
- composer install --no-dev --optimize-autoloader
|
- composer install
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- dist/
|
- dist/
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
image: alpine/ftp
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
image: $LFTP_IMAGE
|
|
||||||
script:
|
script:
|
||||||
- lftp -c "
|
- lftp -c "set ftp:ssl-allow no; open -u $USERNAME,$PASSWORD $HOST;
|
||||||
set ftp:ssl-allow no;
|
|
||||||
open -u $USERNAME,$PASSWORD $HOST;
|
mirror --reverse --verbose --ignore-time --parallel=10
|
||||||
mirror --reverse --verbose --ignore-time --parallel=10 assets assets;
|
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
|
||||||
mirror --reverse --verbose --ignore-time --parallel=10 vendor vendor;
|
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"
|
quit"
|
||||||
- curl -sSf https://$HOST > /dev/null
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue