-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
45 lines (38 loc) · 794 Bytes
/
.gitlab-ci.yml
File metadata and controls
45 lines (38 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
image: ruby:2.3.3
variables:
NOKOGIRI_USE_SYSTEM_LIBRARIES: "true"
stages:
- build
- deploy
# Only run on master branch and branches matching /1.(.*)/ pattern
workflow:
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
- if: '$CI_COMMIT_BRANCH =~ /^1\..*/'
cache:
paths:
- vendor/ruby
before_script:
- bundle install --path vendor/ruby
build:
stage: build
script:
- bundle exec jekyll build
artifacts:
paths:
- _site
expire_in: 1 hour
deploy:
stage: deploy
image: python:3.9
before_script:
- pip install awscli
script:
- aws s3 sync _site/ s3://www.frobiovox.com --delete --acl public-read --region us-west-1
only:
- master
environment:
name: production
url: http://www.frobiovox.com
dependencies:
- build