.gitlab-ci.yml 601 Bytes
Newer Older
1
2
variables:
  KUBECTL: "bitnami/kubectl:1.18.9"
Nane Kratzke's avatar
Nane Kratzke committed
3
  VERSION: "0.0.1"
4

Nane Kratzke's avatar
Nane Kratzke committed
5
6
7
#image: 
#  name: $KUBECTL
#  entrypoint: [""]
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

stages:
    - build
    - deploy

container:
    stage: build
    services:
        - docker:dind
    only:
        changes:
        - prime/*
        - prime/*/*
        - .gitlab-ci.yml
    script:
        - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
        - cd prime
        - docker build -t $CI_REGISTRY_IMAGE:$VERSION -t $CI_REGISTRY_IMAGE:latest .
        - docker push $CI_REGISTRY_IMAGE:$VERSION
        - docker push $CI_REGISTRY_IMAGE:latest