mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-17 03:07:52 -05:00
remove deb.multimedia, test containers actions
This commit is contained in:
36
.github/workflows/docker-build.yaml
vendored
Normal file
36
.github/workflows/docker-build.yaml
vendored
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
name: Container Processing
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "master" ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
push_to_registry:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
service: [account, admin, backend, frontend, mongo, nginx-proxy]
|
||||||
|
name: Push Docker image to DockerHub
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Docker buildx
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
version: latest
|
||||||
|
|
||||||
|
- name: Log in to DockerHub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ vars.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: ${{ matrix.service }}
|
||||||
|
platforms: linux/arm64,linux/amd64
|
||||||
|
push: true
|
||||||
|
tags: ${{ vars.DOCKER_NAMESPACE }}/trunk-server-${{ matrix.service }}:latest
|
||||||
@@ -3,13 +3,11 @@
|
|||||||
|
|
||||||
FROM node:19-bullseye
|
FROM node:19-bullseye
|
||||||
|
|
||||||
|
# RUN echo deb https://www.deb-multimedia.org bullseye main non-free \
|
||||||
|
# >>/etc/apt/sources.list && apt-get update -oAcquire::AllowInsecureRepositories=true &&\
|
||||||
|
# apt-get install -y --force-yes deb-multimedia-keyring && \
|
||||||
|
|
||||||
#RUN useradd --user-group --create-home --shell /bin/false app &&\
|
RUN apt-get update && \
|
||||||
# npm install --global npm@3.7.5
|
|
||||||
RUN echo deb https://www.deb-multimedia.org bullseye main non-free \
|
|
||||||
>>/etc/apt/sources.list && apt-get update -oAcquire::AllowInsecureRepositories=true &&\
|
|
||||||
apt-get install -y --force-yes deb-multimedia-keyring && \
|
|
||||||
apt-get update && \
|
|
||||||
apt-get install -y ffmpeg cron python build-essential g++
|
apt-get install -y ffmpeg cron python build-essential g++
|
||||||
|
|
||||||
ENV HOME=/home/app
|
ENV HOME=/home/app
|
||||||
|
|||||||
Reference in New Issue
Block a user