add supervisord image build
This commit is contained in:
@@ -3,6 +3,7 @@ when:
|
|||||||
path:
|
path:
|
||||||
include:
|
include:
|
||||||
- mikrotik/coredns/**
|
- mikrotik/coredns/**
|
||||||
|
- docker/**
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Get registry creds from OpenBao
|
- name: Get registry creds from OpenBao
|
||||||
@@ -21,7 +22,7 @@ steps:
|
|||||||
- 'printf "PLUGIN_USERNAME=%s\n" "$(bao kv get -mount secret -field REGISTRY_USERNAME container-registry)" > /woodpecker/registry.env'
|
- 'printf "PLUGIN_USERNAME=%s\n" "$(bao kv get -mount secret -field REGISTRY_USERNAME container-registry)" > /woodpecker/registry.env'
|
||||||
- 'printf "PLUGIN_PASSWORD=%s\n" "$(bao kv get -mount secret -field REGISTRY_PASSWORD container-registry)" >> /woodpecker/registry.env'
|
- 'printf "PLUGIN_PASSWORD=%s\n" "$(bao kv get -mount secret -field REGISTRY_PASSWORD container-registry)" >> /woodpecker/registry.env'
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push mikrotik coredns
|
||||||
image: woodpeckerci/plugin-docker-buildx:6.1.1
|
image: woodpeckerci/plugin-docker-buildx:6.1.1
|
||||||
privileged: true
|
privileged: true
|
||||||
settings:
|
settings:
|
||||||
@@ -34,6 +35,24 @@ steps:
|
|||||||
dockerfile: mikrotik/coredns/Dockerfile
|
dockerfile: mikrotik/coredns/Dockerfile
|
||||||
context: mikrotik/coredns/
|
context: mikrotik/coredns/
|
||||||
env_file: /woodpecker/registry.env
|
env_file: /woodpecker/registry.env
|
||||||
|
cache_images:
|
||||||
|
- gitea.lumpiasty.xyz/lumpiasty/coredns-mikrotik:buildcache
|
||||||
|
|
||||||
|
- name: Build and push llama-swap-supervisord
|
||||||
|
image: woodpeckerci/plugin-docker-buildx:6.1.1
|
||||||
|
privileged: true
|
||||||
|
settings:
|
||||||
|
registry: gitea.lumpiasty.xyz
|
||||||
|
repo: gitea.lumpiasty.xyz/lumpiasty/supervisord
|
||||||
|
platforms: linux/arm64
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
- ${CI_COMMIT_SHA:0:8}
|
||||||
|
dockerfile: docker/supervisord/Dockerfile
|
||||||
|
context: docker/supervisord/
|
||||||
|
env_file: /woodpecker/registry.env
|
||||||
|
cache_images:
|
||||||
|
- gitea.lumpiasty.xyz/lumpiasty/supervisord:buildcache
|
||||||
|
|
||||||
- name: Invalidate OpenBao token
|
- name: Invalidate OpenBao token
|
||||||
image: quay.io/openbao/openbao:2.5.5
|
image: quay.io/openbao/openbao:2.5.5
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
FROM debian:13.5
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
RUN apt update && apt install -y --no-install-recommends\
|
||||||
|
supervisor \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
ADD --chmod=755 entrypoint.sh /
|
||||||
|
|
||||||
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
WORKSPACE=/workspace
|
||||||
|
CONF=$WORKSPACE/supervisord.conf
|
||||||
|
|
||||||
|
[[ -f "$CONF" ]] || (echo_supervisord_conf > $CONF )
|
||||||
|
|
||||||
|
exec supervisord -n -c $CONF "$@"
|
||||||
Reference in New Issue
Block a user