2023-02-06 10:52:21 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build and push
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build and push
|
|
|
|
image: docker:dind
|
|
|
|
volumes:
|
|
|
|
- name: docker.sock
|
|
|
|
path: /var/run/docker.sock
|
|
|
|
environment:
|
|
|
|
REG:
|
|
|
|
from_secret: registry
|
|
|
|
commands:
|
|
|
|
- mkdir ~/.docker
|
|
|
|
- echo "$REG" > ~/.docker/config.json
|
|
|
|
- apk add make
|
|
|
|
- make all
|
|
|
|
|
2023-02-06 11:11:39 +00:00
|
|
|
volumes:
|
2023-02-06 11:50:41 +00:00
|
|
|
- name: docker.sock
|
2023-02-06 11:11:39 +00:00
|
|
|
host:
|
|
|
|
path: /var/run/docker.sock
|
|
|
|
|