Fakultas Ilmu Komputer UI

Commit 181b1a07 authored by Ragil Al Badrun Pasaribu's avatar Ragil Al Badrun Pasaribu
Browse files

Separate deploy from build

parent 385e4978
Pipeline #9924 failed
...@@ -5,19 +5,32 @@ variables: ...@@ -5,19 +5,32 @@ variables:
HTTPS_PROXY: http://proxy.cs.ui.ac.id:8080 HTTPS_PROXY: http://proxy.cs.ui.ac.id:8080
stages: stages:
- build
- deploy - deploy
deploy: build:
image: ruby:2.3-alpine3.8 image: ruby:2.3
stage: deploy stage: deploy
script: script:
- apk add curl zip - apk add curl zip
- bundle install - bundle install
- bundle exec jekyll build -d public - bundle exec jekyll build -d public
- sh deploy.sh
artifacts: artifacts:
paths: paths:
- public - public
only: only:
refs: refs:
- master - master
stage: deploy
image: alpine:3.9
HTTP_PROXY: http://proxy.cs.ui.ac.id:8080
HTTPS_PROXY: http://proxy.cs.ui.ac.id:8080
- apk add curl zip
- sh deploy.sh
- build
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment