Compare commits

..

No commits in common. "5b2775afe05b2cbd6d7b134438acff573f32e51b" and "649df6d604953f644d2fa25d6ad5a1c6d388d626" have entirely different histories.

3 changed files with 144 additions and 29 deletions

139
.drone.yml Normal file
View file

@ -0,0 +1,139 @@
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

View file

@ -1,28 +0,0 @@
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

View file

@ -1,4 +1,8 @@
FROM debian:11.0-slim@sha256:dacf278785a4daa9de07596ec739dbc07131e189942772210709c5c0777e8437 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}
ENV COTURN_VERSION="4.5.2" ENV COTURN_VERSION="4.5.2"
ENV PROMETHEUS_CLIENT_VERSION="v0.1.3" ENV PROMETHEUS_CLIENT_VERSION="v0.1.3"