diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 696de79..0000000 --- a/.drone.yml +++ /dev/null @@ -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 diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..2dbd862 --- /dev/null +++ b/.woodpecker.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 055b42e..47475c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,4 @@ -ARG ARCH -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} +FROM debian:10.9-slim@sha256:33965bf1eaadb19ce2f9396595c4a669e3e04c1ab8cc073b8929f529c58404bb ENV COTURN_VERSION="4.5.2" ENV PROMETHEUS_CLIENT_VERSION="v0.1.3"