feat(build): upgrade docker to 20 with TLS
This commit is contained in:
parent
549cd28c75
commit
57fb83c31a
|
@ -6,7 +6,7 @@ stages:
|
||||||
- status-post
|
- status-post
|
||||||
|
|
||||||
.build-base:
|
.build-base:
|
||||||
image: apextoaster/base:1.5
|
image: docker.artifacts.apextoaster.com/apextoaster/base:1.5
|
||||||
tags:
|
tags:
|
||||||
- platform:k8s
|
- platform:k8s
|
||||||
- runner:shared
|
- runner:shared
|
||||||
|
@ -15,7 +15,7 @@ stages:
|
||||||
extends:
|
extends:
|
||||||
- .build-base
|
- .build-base
|
||||||
stage: build
|
stage: build
|
||||||
image: apextoaster/golang:1.14-master
|
image: docker.artifacts.apextoaster.com/apextoaster/golang:1.14-master
|
||||||
variables:
|
variables:
|
||||||
GOPATH: /build
|
GOPATH: /build
|
||||||
BUILD_OPTS: -a -v -x
|
BUILD_OPTS: -a -v -x
|
||||||
|
@ -75,12 +75,15 @@ build-go-windows-x86:
|
||||||
.build-docker:
|
.build-docker:
|
||||||
extends:
|
extends:
|
||||||
- .build-base
|
- .build-base
|
||||||
image: apextoaster/docker:18.09
|
image: docker.artifacts.apextoaster.com/apextoaster/docker:20.10
|
||||||
services:
|
services:
|
||||||
- apextoaster/docker-dind:18.09
|
- docker.artifacts.apextoaster.com/apextoaster/docker-dind:20.10
|
||||||
variables: &vars-docker
|
variables: &vars-docker
|
||||||
|
DOCKER_CERT_PATH: "/shared/docker/client"
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
DOCKER_HOST: tcp://localhost:2375
|
DOCKER_HOST: tcp://localhost:2376
|
||||||
|
DOCKER_TLS_CERTDIR: "/shared/docker"
|
||||||
|
DOCKER_TLS_VERIFY: 1
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- mkdir ${HOME}/.docker
|
- mkdir ${HOME}/.docker
|
||||||
|
|
Loading…
Reference in New Issue