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: stages:
- build - build
...@@ -6,11 +6,14 @@ stages: ...@@ -6,11 +6,14 @@ stages:
build_image: build_image:
stage: build stage: build
image: docker:23.0.3
services: services:
- docker:18.09.7-dind - 'docker:23.0.3-dind'
before_script:
- until docker info; do sleep 1; done
script: script:
- if [ "$CI_COMMIT_REF_NAME" == "master" ]; then TAG="latest"; else TAG="develop"; fi - 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 login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker push $CI_REGISTRY_IMAGE:$TAG - 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