You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
782 B

# The only image where dind works on GitLab.com
5 years ago
image: gitlab/dind
5 years ago
# So we can use Docker inside build script
services:
- docker:dind
# Task for GitHub Pages
5 years ago
pages:
stage: deploy
# cache composer data (especially useful if you set up Satis to download packages)
cache:
paths:
- composer
5 years ago
script:
- if [ ! -d composer ]; then mkdir composer; fi
# run satis from docker image
- docker run --rm -i -v `pwd`:/build -v `pwd`/composer:/composer -e COMPOSER_AUTH="$COMPOSER_AUTH" composer/satis
# gitlab requires directory to be named public for whatever reason
- mv output public
# artifacts for Pages
5 years ago
artifacts:
paths:
- public
# I don't like any garbage stored in the ci
3 years ago
expire_in: 1w
# do this only on master branch
5 years ago
only:
- master