test docker
This commit is contained in:
parent
1ef5512561
commit
58ac5e9c15
1 changed files with 19 additions and 34 deletions
23
.drone.yml
23
.drone.yml
|
@ -25,12 +25,8 @@ steps:
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: build
|
name: build
|
||||||
|
|
||||||
workspace:
|
|
||||||
base: /go
|
|
||||||
path: src/gitea.hackmi.ch/Phil/goshorly
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build-docker
|
||||||
image: docker:dind
|
image: docker:dind
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
|
@ -40,6 +36,7 @@ steps:
|
||||||
from_secret: DOCKER_PASSWORD
|
from_secret: DOCKER_PASSWORD
|
||||||
commands:
|
commands:
|
||||||
- sleep 10
|
- sleep 10
|
||||||
|
- docker ps -a
|
||||||
- docker context create build
|
- docker context create build
|
||||||
- docker buildx create build --use
|
- docker buildx create build --use
|
||||||
- echo $DOCKER_PASSWORD | docker login --username Phil --password-stdin gitea.hackmi.ch
|
- echo $DOCKER_PASSWORD | docker login --username Phil --password-stdin gitea.hackmi.ch
|
||||||
|
@ -54,7 +51,7 @@ steps:
|
||||||
.
|
.
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: docker
|
- name: docker
|
||||||
image: docker:dind
|
image: docker:dind
|
||||||
privileged: true
|
privileged: true
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -62,20 +59,8 @@ services:
|
||||||
path: /var/run
|
path: /var/run
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
temp: {}
|
temp: {}
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- check
|
- check
|
||||||
|
|
||||||
# ---
|
|
||||||
# kind: pipeline
|
|
||||||
# name: release
|
|
||||||
|
|
||||||
# workspace:
|
|
||||||
# base: /go
|
|
||||||
# path: src/gitea.hackmi.ch/Phil/goshorly
|
|
||||||
|
|
||||||
# depends_on:
|
|
||||||
# - check
|
|
||||||
# - build
|
|
Loading…
Reference in a new issue