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