Skip to content

Commit

Permalink
Remove nano from docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Arial-Z committed Nov 1, 2023
1 parent 4a33d5a commit 400f44c
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 2 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Docker dev Release

on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]

jobs:

docker-nightly:
runs-on: ubuntu-latest
steps:

- name: Check Out Repo
uses: actions/checkout@v4
with:
ref: dev

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@master
with:
platforms: all

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
context: ./
file: ./Dockerfile
build-args: |
"BRANCH_NAME=dev"
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-romaji-renamer:dev
45 changes: 45 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Docker main Release

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:

docker-nightly:
runs-on: ubuntu-latest
steps:

- name: Check Out Repo
uses: actions/checkout@v4
with:
ref: main

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@master
with:
platforms: all

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
context: ./
file: ./Dockerfile
build-args: |
"BRANCH_NAME=stable"
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-romaji-renamer:stable
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN echo "**** install system packages ****" \
&& apt-get update \
&& apt-get upgrade -y --no-install-recommends \
&& apt-get install -y tzdata --no-install-recommends \
&& apt-get install -y gcc g++ libxml2-dev libxslt-dev libz-dev libjpeg62-turbo-dev zlib1g-dev wget curl jq nano \
&& apt-get install -y gcc g++ libxml2-dev libxslt-dev libz-dev libjpeg62-turbo-dev zlib1g-dev wget curl jq \
&& wget -O /tini https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-"$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
&& chmod +x /tini \
&& pip3 install --no-cache-dir --upgrade --requirement /requirements.txt \
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: "2.1"
services:
plex-romaji-renamer:
image: plex-romaji-renamer
image: arialz/plex-romaji-renamer:dev
container_name: plex-romaji-renamer
environment:
- PUID=1000
Expand Down

0 comments on commit 400f44c

Please sign in to comment.