test docker

This commit is contained in:
Phil 2022-12-24 00:02:06 +01:00
parent 1ef5512561
commit 58ac5e9c15

View file

@ -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