29 lines
689 B
YAML
29 lines
689 B
YAML
kind: pipeline
|
|
type: kubernetes
|
|
name: default
|
|
|
|
metadata:
|
|
namespace: git
|
|
|
|
volumes:
|
|
- name: cache
|
|
claim:
|
|
name: storage2
|
|
|
|
steps:
|
|
- name: build
|
|
image: docker
|
|
privileged: true
|
|
volumes:
|
|
- name: cache
|
|
path: /cache
|
|
environment:
|
|
TOKEN:
|
|
from_secret: registry_token
|
|
commands:
|
|
- dockerd --data-root /cache/dockerd &
|
|
- docker login -u registry -p $TOKEN registry.v0l.io
|
|
- git clone --single-branch --branch zap_stream_modifications https://git.v0l.io/Kieran/notepush.git
|
|
- docker build -t registry.v0l.io/notepush:latest .
|
|
- docker push registry.v0l.io/notepush:latest
|
|
- kill $(cat /var/run/docker.pid) |