summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 656a0e581a659076ebbd3a924c194d31e6500fc5 (plain)
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
stages:
  - build
  - release

variables:
  TMP_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA

build-docker-image:
  image: docker:stable
  stage: build
  services:
    - docker:stable-dind
  script:
    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
    - docker build -t $TMP_IMAGE .
    - docker push $TMP_IMAGE

release-deb:
  image: $TMP_IMAGE
  stage: release
  script:
    - find /opt/asdf
  artifacts:
    paths:
      - /opt/asdf
    expire_in: 1 week