Compare commits

..

2 commits

Author SHA1 Message Date
Oliver Traber 558f984f43
Use bitnami minideb
Some checks failed
ci/woodpecker/push/docker Pipeline failed
2023-07-09 22:16:42 +02:00
Oliver Traber 664925d246
Migrate to Woodpecker CI 2023-07-09 22:15:15 +02:00
3 changed files with 27 additions and 26 deletions

View file

@ -1,19 +0,0 @@
kind: pipeline
type: docker
name: nginx-live
steps:
- name: docker
image: plugins/docker
settings:
pull_image: true
no_cache: true
repo: git.bluemedia.dev/bluemedia/nginx-live
tags:
- latest
purge: true
registry: git.bluemedia.dev
username:
from_secret: docker_username
password:
from_secret: docker_password

25
.woodpecker/docker.yaml Normal file
View file

@ -0,0 +1,25 @@
steps:
docker:
image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]
settings:
pull_image: true
registry: git.bluemedia.dev
repo: git.bluemedia.dev/bluemedia/nginx-live
platforms: linux/amd64,linux/arm/v6,linux/arm64/v8
tag: latest
notify:
image: deblan/woodpecker-email
settings:
from.address:
from_secret: smtp_notify_email
from.name: Woodpecker CI
host:
from_secret: smtp_notify_host
username:
from_secret: smtp_notify_email
password:
from_secret: smtp_notify_password
when:
- status: [ failure ]

View file

@ -1,5 +1,5 @@
# Base Image used to create this Image # Base Image used to create this Image
FROM debian:bullseye-slim FROM bitnami/minideb:bullseye
# Maintainer # Maintainer
LABEL maintainer="hi@bluemedia.dev" LABEL maintainer="hi@bluemedia.dev"
@ -11,12 +11,7 @@ ENV HLS_FRAGMENT_LENGTH 3
ENV HLS_PLAYLIST_LENGTH 20 ENV HLS_PLAYLIST_LENGTH 20
# Update and install packages # Update and install packages
RUN apt update -y && \ RUN install_packages nginx libnginx-mod-rtmp
apt upgrade -y && \
apt autoremove -y && \
apt install nginx libnginx-mod-rtmp -y && \
apt clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Create nginx user # Create nginx user
RUN useradd -s /bin/false nginx RUN useradd -s /bin/false nginx