Files
gitea-pages/.gitlab-ci.yml
bliven_s 51435c5cf5 Converting Dockerfile to use the alpine image
This matches the image used in .gitlab-ci.yml.

Pinning alpine:3.13 due to errors with gem install in 3.14.
2021-06-25 21:35:09 +02:00

48 lines
1.0 KiB
YAML

stages:
- test
- deploy
image: alpine:3.13
variables:
JEKYLL_ENV: production
before_script:
- apk list -I
- >
apk --no-cache add libatomic readline readline-dev libxml2 libxml2-dev
ncurses-terminfo-base ncurses-terminfo
libxslt libxslt-dev zlib-dev zlib
ruby ruby-dev yaml yaml-dev
libffi-dev build-base git nodejs
- gem install etc bundler --no-document
- pwd
- ls -l
- bundle install
######################################################################
# this defines the job (for gitlab-pages it has the special name "pages")
pages:
stage: deploy
script:
- pwd
- ls -l
- bundle exec jekyll --version
- bundle exec jekyll build -d public
# defines what is produced by the scripts (the "artifacts")
artifacts:
paths:
- public
# the tags define which runners (builders) will be selected. A
# suitable runner must have an identical tag
tags:
- shared
- gitlab-pages
- docker
# the "pages" job is only to be run for the master branch
only:
- master