Skip to content
Snippets Groups Projects
Commit cd48cee5 authored by Matthew K Defenderfer's avatar Matthew K Defenderfer
Browse files

set dind as a service and change default image to latest docker

parent f091b893
No related branches found
No related tags found
No related merge requests found
Pipeline #12212 passed with stage
in 23 minutes and 57 seconds
default: default:
image: docker:26.0.1-dind image: docker:latest
stages: stages:
- build - build
...@@ -11,11 +11,12 @@ variables: ...@@ -11,11 +11,12 @@ variables:
before_script: before_script:
- unset DOCKER_HOST - unset DOCKER_HOST
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY - echo "${CI_REGISTRY_PASSWORD}" | docker login -u "${CI_REGISTRY_USER}" --password-stdin ${CI_REGISTRY}
push_docker_image: push_docker_image:
stage: build stage: build
image: docker:26.0.1-dind services:
- docker:dind
script: script:
- docker build -t $DOCKER_IMAGE:$CI_COMMIT_SHORT_SHA -f docker/Dockerfile . - docker build -t $DOCKER_IMAGE:$CI_COMMIT_SHORT_SHA -f docker/Dockerfile .
- docker push $DOCKER_IMAGE:$CI_COMMIT_SHORT_SHA - docker push $DOCKER_IMAGE:$CI_COMMIT_SHORT_SHA
......
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