Skip to content
Snippets Groups Projects
Commit fc5f939e authored by David O'Regan's avatar David O'Regan
Browse files

Add gitlab CI YML file

parent 1a845aa7
No related branches found
No related tags found
No related merge requests found
Pipeline #1461 failed
image: ruby:2.6
cache:
paths:
- vendor
test:
script:
- apt-get update -yqqq
- curl -sL https://deb.nodesource.com/setup_12.x | bash -
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
- apt update
- apt-get install -y nodejs yarn
- export GEM_HOME=$PWD/gems
- export PATH=$PWD/gems/bin:$PATH
- gem install bundler
- gem install bridgetown -N
- bundle install
- yarn install
- yarn webpack --mode production
- bin/bridgetown build --base_path mysite --url https://bridgetownrb.gitlab.io
- bin/bridgetown clean
except:
- main
pages:
script:
- apt-get update -yqqq
- curl -sL https://deb.nodesource.com/setup_12.x | bash -
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
- apt update
- apt-get install -y nodejs yarn
- export GEM_HOME=$PWD/gems
- export PATH=$PWD/gems/bin:$PATH
- gem install bundler
- gem install bridgetown -N
- bundle install
- yarn install
- yarn webpack --mode production
- bin/bridgetown build --base_path mysite --url https://bridgetownrb.gitlab.io
- mv output public
artifacts:
paths:
- public
only:
- main
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment