updated Dockerfile and .woodpecker.yml

This commit is contained in:
Samuel Philipp 2021-11-04 22:43:29 +01:00
parent ea037e0952
commit f17d9489b0
3 changed files with 29 additions and 144 deletions

View file

@ -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
View 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

View file

@ -1,8 +1,4 @@
ARG ARCH FROM debian:10.9-slim@sha256:33965bf1eaadb19ce2f9396595c4a669e3e04c1ab8cc073b8929f529c58404bb
FROM amd64/debian:10.9-slim@sha256:33965bf1eaadb19ce2f9396595c4a669e3e04c1ab8cc073b8929f529c58404bb AS base-amd64
FROM arm32v7/debian:10.9-slim@sha256:46d4252a90ec7f2399db615a8d51a7f48157485127d1cab2d2aea129773356b5 AS base-arm
FROM arm64v8/debian:10.9-slim@sha256:08d5b62029fae0db4c6255078509da3368da08dd0987ec54ebf8445f0c3a61d9 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"