-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
.gitlab-ci.yml
62 lines (57 loc) · 1.18 KB
/
.gitlab-ci.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
stages:
- test
- deploy
- registry
.ruby:
image: ruby:3.3.5
before_script:
- bundle config set deployment true
- bundle config set --local path vendor
- bundle install
cache:
paths:
- vendor/
test:
stage: test
extends: .ruby
script:
- bundle exec jekyll build --future --trace
- bundle exec rake check
only:
- main
test-external:
stage: test
extends: .ruby
when: manual
script:
- bundle exec jekyll build --future --trace
- bundle exec rake check-external
only:
- main
pages:
stage: deploy
extends: .ruby
script:
- bundle exec rake update-releases
- bundle exec rake update-apps
- bundle exec rake generate-data-pages
- bundle exec jekyll build -d public --future --baseUrl "/calyxos.org"
artifacts:
paths:
- public
only:
- main
build:
image: docker:27
stage: registry
services:
- name: docker:27-dind
alias: docker
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
script:
- echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin
- docker build -t $IMAGE_TAG .
- docker push $IMAGE_TAG
only:
- main