mirror of
https://github.com/v0l/zap-stream-core.git
synced 2025-06-16 08:59:35 +00:00
31 lines
718 B
YAML
31 lines
718 B
YAML
kind: pipeline
|
|
type: kubernetes
|
|
name: default
|
|
concurrency:
|
|
limit: 1
|
|
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: gitea
|
|
DOCKER_TOKEN:
|
|
from_secret: docker_hub
|
|
commands:
|
|
- dockerd --data-root /cache/dockerd &
|
|
- docker login -u voidic -p $DOCKER_TOKEN
|
|
- docker buildx create --name mybuilder --bootstrap --use
|
|
- docker buildx build --push --platform linux/amd64 -t voidic/zap-stream-core:latest -f ./crates/zap-stream/Dockerfile .
|
|
- kill $(cat /var/run/docker.pid)
|
|
|