.gitlab-ci.yml 440 Bytes
Newer Older
Markus Frosch's avatar
Markus Frosch committed
1 2 3 4 5 6 7 8 9
image: docker:latest
services:
  - docker:dind

stages:
  - build

before_script:
  - docker info
Markus Frosch's avatar
Markus Frosch committed
10
  - docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
Markus Frosch's avatar
Markus Frosch committed
11 12 13 14 15 16 17 18 19 20
  - apk -U add make

.build_job: &build_job
  stage: build
  tags:
    - docker-build
  script:
    - make -C ${CI_JOB_NAME}
    - '[ "$CI_COMMIT_REF_NAME" != master ] || make -C ${CI_JOB_NAME} push'

Markus Frosch's avatar
Markus Frosch committed
21 22
'29':
  <<: *build_job
Markus Frosch's avatar
Markus Frosch committed
23 24 25

'30':
  <<: *build_job
Michael Friedrich's avatar
Michael Friedrich committed
26 27 28

'31':
  <<: *build_job