Skip to content
Snippets Groups Projects
Commit 964be122 authored by Stefano Guerrini's avatar Stefano Guerrini
Browse files

jekyll configuration: using variable for dev and prod deploy dir

parent 11e37db5
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,6 @@ variables: ...@@ -8,7 +8,6 @@ variables:
# JEKYLL_ENV: production # JEKYLL_ENV: production
LC_ALL: C.UTF-8 LC_ALL: C.UTF-8
BUILD_DIR: public/ BUILD_DIR: public/
DEPLOY_DIR: public_html/TLLALinearity2022/
cache: cache:
paths: paths:
...@@ -16,8 +15,6 @@ cache: ...@@ -16,8 +15,6 @@ cache:
.build: .build:
stage: build stage: build
variables:
CONFIG: _config.yml
before_script: before_script:
- apt-get update -qy - apt-get update -qy
- gem install bundler - gem install bundler
...@@ -62,17 +59,21 @@ build.dev: ...@@ -62,17 +59,21 @@ build.dev:
build.prod: build.prod:
extends: .build extends: .build
variables:
CONFIG: _config.yml
only: only:
- web.prod - web.prod
deploy.dev: deploy.dev:
extends: .deploy extends: .deploy
variables: variables:
DEPLOY_DIR: public_html/TLLA/dev/2022/ DEPLOY_DIR: $DEV_DEPLOY_DIR
only: only:
- web.dev - web.dev
deploy.prod: deploy.prod:
extends: .deploy extends: .deploy
variables:
DEPLOY_DIR: $PROD_DEPLOY_DIR
only: only:
- web.prod - web.prod
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