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 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
path: /var/run path: /var/run
environment: environment:
DOCKER_PASSWORD: DOCKER_PASSWORD:
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,28 +51,16 @@ steps:
. .
services: services:
- name: docker - name: docker
image: docker:dind image: docker:dind
privileged: true privileged: true
volumes: volumes:
- name: dockersock - name: dockersock
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