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

Eliot Berriot's avatar
Eliot Berriot committed
3
stages:
4
5
6
7
8
9
  - test
  - build

test_api:
  stage: test
  script:
10
11
    - docker-compose -f api/test.yml build
    - docker-compose -f api/test.yml run test
12
13
14
15
16
17
18
19
20
21
22
23

  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
Eliot Berriot's avatar
Eliot Berriot committed
24
25
26
  only:
    - master
    - develop
27
28
  tags:
    - dind
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 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