Compare commits
2 commits
649df6d604
...
5b2775afe0
Author | SHA1 | Date | |
---|---|---|---|
5b2775afe0 | |||
f17d9489b0 |
3 changed files with 29 additions and 144 deletions
139
.drone.yml
139
.drone.yml
|
@ -1,139 +0,0 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
name: linux-amd64
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
purge: true
|
||||
no_cache: true
|
||||
auto_tag: true
|
||||
auto_tag_suffix: linux-amd64
|
||||
repo: spcodes/coturn
|
||||
build_args:
|
||||
- ARCH=amd64
|
||||
username:
|
||||
from_secret: USERNAME
|
||||
password:
|
||||
from_secret: PASSWORD
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
|
||||
#not supported by prometheus-client-c
|
||||
#---
|
||||
#kind: pipeline
|
||||
#type: docker
|
||||
#name: linux-arm
|
||||
#
|
||||
#platform:
|
||||
# os: linux
|
||||
# arch: arm
|
||||
#
|
||||
#steps:
|
||||
# - name: docker
|
||||
# image: plugins/docker
|
||||
# settings:
|
||||
# purge: true
|
||||
# no_cache: true
|
||||
# auto_tag: true
|
||||
# auto_tag_suffix: linux-arm
|
||||
# repo: spcodes/coturn
|
||||
# build_args:
|
||||
# - ARCH=arm
|
||||
# username:
|
||||
# from_secret: USERNAME
|
||||
# password:
|
||||
# from_secret: PASSWORD
|
||||
#
|
||||
#trigger:
|
||||
# branch:
|
||||
# - main
|
||||
# event:
|
||||
# - push
|
||||
|
||||
#not supported by prometheus-client-c
|
||||
#---
|
||||
#kind: pipeline
|
||||
#type: docker
|
||||
#name: linux-arm64
|
||||
#
|
||||
#platform:
|
||||
# os: linux
|
||||
# arch: arm64
|
||||
#
|
||||
#steps:
|
||||
# - name: docker
|
||||
# image: plugins/docker
|
||||
# settings:
|
||||
# purge: true
|
||||
# no_cache: true
|
||||
# auto_tag: true
|
||||
# auto_tag_suffix: linux-arm64
|
||||
# repo: spcodes/coturn
|
||||
# build_args:
|
||||
# - ARCH=arm64
|
||||
# username:
|
||||
# from_secret: USERNAME
|
||||
# password:
|
||||
# from_secret: PASSWORD
|
||||
#
|
||||
#trigger:
|
||||
# branch:
|
||||
# - main
|
||||
# event:
|
||||
# - push
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: manifest
|
||||
|
||||
steps:
|
||||
- name: publish-version
|
||||
image: plugins/manifest
|
||||
settings:
|
||||
ignore_missing: true
|
||||
target: spcodes/coturn:4.5.2
|
||||
template: spcodes/coturn:OS-ARCH
|
||||
platforms:
|
||||
- linux/amd64
|
||||
# - linux/arm64
|
||||
# - linux/arm
|
||||
username:
|
||||
from_secret: USERNAME
|
||||
password:
|
||||
from_secret: PASSWORD
|
||||
- name: publish-latest
|
||||
image: plugins/manifest
|
||||
settings:
|
||||
ignore_missing: true
|
||||
target: spcodes/coturn
|
||||
template: spcodes/coturn:OS-ARCH
|
||||
platforms:
|
||||
- linux/amd64
|
||||
# - linux/arm64
|
||||
# - linux/arm
|
||||
username:
|
||||
from_secret: USERNAME
|
||||
password:
|
||||
from_secret: PASSWORD
|
||||
|
||||
depends_on:
|
||||
- linux-amd64
|
||||
# - linux-arm64
|
||||
# - linux-arm
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
28
.woodpecker.yml
Normal file
28
.woodpecker.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
pipeline:
|
||||
docker:
|
||||
image: plugins/docker
|
||||
secrets:
|
||||
- DOCKER_USERNAME
|
||||
- DOCKER_PASSWORD
|
||||
repo: spcodes/coturn
|
||||
tags: latest
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
cr:
|
||||
image: plugins/docker
|
||||
secrets:
|
||||
- source: CR_USERNAME
|
||||
target: DOCKER_USERNAME
|
||||
- source: CR_PASSWORD
|
||||
target: DOCKER_PASSWORD
|
||||
registry: cr.sp-codes.de
|
||||
repo: cr.sp-codes.de/coturn
|
||||
tags: latest
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
|
@ -1,8 +1,4 @@
|
|||
ARG ARCH
|
||||
FROM debian:11.0-slim@sha256:dacf278785a4daa9de07596ec739dbc07131e189942772210709c5c0777e8437 AS base-amd64
|
||||
FROM arm32v7/debian:11.0-slim@sha256:d25d98cd76eec0baf9f4d8b19525704ded1c53c3263f7573ad0f2530369cd167 AS base-arm
|
||||
FROM arm64v8/debian:11.0-slim@sha256:9f3995fceb697af94122fcb9fe7457e3bc68090fcb86692ff83a4bf526d45b48 AS base-arm64
|
||||
FROM base-${ARCH}
|
||||
FROM debian:11.0-slim@sha256:dacf278785a4daa9de07596ec739dbc07131e189942772210709c5c0777e8437
|
||||
|
||||
ENV COTURN_VERSION="4.5.2"
|
||||
ENV PROMETHEUS_CLIENT_VERSION="v0.1.3"
|
||||
|
|
Reference in a new issue