.gitlab-ci.yml 716 Bytes
Newer Older
1
2
image: docker:latest

3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
steps:
  - test
  - build

test_api:
  stage: test
  script:
    - ./api/runtests

  tags:
    - dind

build_front:
  stage: build
  script:
    - docker-compose -f dev.yml front rm dist/*
    - docker-compose -f dev.yml front npm run build
  artifacts:
    paths:
      - front/dist

  tags:
    - dind
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# When using dind, it's wise to use the overlayfs driver for
# improved performance.
# variables:
#   DOCKER_DRIVER: overlay
#
# services:
# - docker:dind
#
#
# # build:
# #   stage: build
# #   script:
# #   - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
# #   - docker build -t funkwhale/front .
# #   - docker push
# #
# #   tags:
# #     - dind
# #   only:
# #     - master