.gitlab-ci.yml 416 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'

Alexander A. Klimov's avatar
Alexander A. Klimov committed
21 22
'33':
  <<: *build_job
Alexander A. Klimov's avatar
Add v34  
Alexander A. Klimov committed
23 24 25

'34':
  <<: *build_job