Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 39c09a3f authored by Christophe Chaudier's avatar Christophe Chaudier :rocket:
Browse files

ci: deploy on froggit pages

parent de1165be
No related branches found
No related tags found
1 merge request!1Resolve "init site with staticast"
Pipeline #10472 passed
image: alpine:latest image: cimg/php:8.2
cache:
paths:
- composer-cache/
- vendor/
- .cache/
before_script:
- |
echo "Downloading Cecil..."
if [[ -z "$CECIL_VERSION" ]]; then
curl -sSOL https://cecil.app/cecil.phar
else
curl -sSOL https://cecil.app/download/$CECIL_VERSION/cecil.phar
fi
- php cecil.phar --version
- COMPOSER_CACHE_DIR=composer-cache composer install --prefer-dist --no-dev --no-progress --no-interaction
test:
stage: test
tags:
- cache
script:
- php cecil.phar build --verbose --output=test
artifacts:
paths:
- test
rules:
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
pages: pages:
stage: deploy stage: deploy
tags:
- cache
script: script:
- echo 'Nothing to do...' - php cecil.phar build --output=public
artifacts: artifacts:
paths: paths:
- public - public
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment