Skip to content
Snippets Groups Projects
Commit ea2ecd11 authored by Griefed's avatar Griefed :joystick:
Browse files

Update gitlab-ci.yml

parent 5c644e0f
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,10 @@ variables: ...@@ -7,6 +7,10 @@ variables:
DOCKER_TLS_CERTDIR: "" DOCKER_TLS_CERTDIR: ""
DOCKER_VERSION: 19.03.8 DOCKER_VERSION: 19.03.8
#Docker version MUST match the version in the runner config.toml #Docker version MUST match the version in the runner config.toml
DOCKER_HOST: tcp://docker:2376
services:
- docker:19.03.8-dind
create_readme: create_readme:
stage: create_readme stage: create_readme
...@@ -37,9 +41,11 @@ create_readme: ...@@ -37,9 +41,11 @@ create_readme:
build: build:
stage: build stage: build
image: docker:$DOCKER_VERSION image: docker:$DOCKER_VERSION
services:
- docker:$DOCKER_VERSION-dind
script: script:
- echo "Build stage started." - echo "Build stage started."
- docker info - docker info
- docker build --network="host" -t $CI_PROJECT_NAME:latest . - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker pull $CI_REGISTRY_IMAGE:latest || true
- docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --tag $CI_REGISTRY_IMAGE:latest .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
- docker push $CI_REGISTRY_IMAGE:latest
\ No newline at end of file
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