Skip to content
Snippets Groups Projects
Commit fbac1c95 authored by Bartosz Walkowiak's avatar Bartosz Walkowiak
Browse files

Update .gitlab-ci.yml

parent 40ba813c
1 merge request!3Update httpd.conf prevent dir browsing
Pipeline #21723 passed with stage
in 53 seconds
image: docker:18.09.7
image: docker:23.0.3
stages:
- build
......@@ -6,11 +6,14 @@ stages:
build_image:
stage: build
image: docker:23.0.3
services:
- docker:18.09.7-dind
- 'docker:23.0.3-dind'
before_script:
- until docker info; do sleep 1; done
script:
- if [ "$CI_COMMIT_REF_NAME" == "master" ]; then TAG="latest"; else TAG="develop"; fi
- docker build -t $CI_REGISTRY_IMAGE:$TAG .
- docker build -t $CI_REGISTRY_IMAGE:$TAG -o type=docker .
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker push $CI_REGISTRY_IMAGE:$TAG
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment