Skip to content
Snippets Groups Projects
Commit 6aa22c7a authored by jan.bednarik's avatar jan.bednarik
Browse files

CI setup

parent b2566742
Branches master
No related tags found
No related merge requests found
Pipeline #5518 passed
stages:
- build
image: docker:20.10.8
variables:
DOCKER_TLS_CERTDIR: "/certs"
IMAGE_TAG_APP: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
services:
- docker:20.10.8-dind
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
build_app:
stage: build
script:
- docker pull $CI_REGISTRY_IMAGE:master || true
- docker build --cache-from $CI_REGISTRY_IMAGE:master -t $IMAGE_TAG_APP .
- docker push $IMAGE_TAG_APP
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment