diff options
author | Astound <kirito@disroot.org> | 2025-03-02 05:21:48 +0800 |
---|---|---|
committer | Astound <kirito@disroot.org> | 2025-03-02 05:21:48 +0800 |
commit | 28dac0bb360524c5a019f66e434fe7ce85a0f0b9 (patch) | |
tree | 1452cb1afadfc35676d10085408191a26e86cd6d | |
parent | ef7466cb9016b7f054e6c87dbc1db53a4ddb0a3b (diff) | |
download | yt-local-docker-28dac0bb360524c5a019f66e434fe7ce85a0f0b9.tar.lz yt-local-docker-28dac0bb360524c5a019f66e434fe7ce85a0f0b9.tar.xz yt-local-docker-28dac0bb360524c5a019f66e434fe7ce85a0f0b9.zip |
update to yt-local v0.2.20
-rw-r--r-- | .gitea/workflows/release.yaml | 16 | ||||
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | core/0001.patch | 10 | ||||
-rw-r--r-- | core/Dockerfile | 2 |
4 files changed, 16 insertions, 20 deletions
diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 4e871a8..db440f8 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -10,8 +10,6 @@ on: jobs: release-default: runs-on: ubuntu-latest - container: - image: gitea/runner-images:ubuntu-latest steps: - name: Collect Workflow Telemetry uses: catchpoint/workflow-telemetry-action@v2 @@ -19,6 +17,9 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Extract YT_BRANCH version + run: echo "VERSION=$(grep -oP 'ARG YT_BRANCH="\K[^"]+' core/Dockerfile)" >> $GITHUB_ENV + - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -43,15 +44,12 @@ jobs: with: context: core file: core/Dockerfile - platforms: | - linux/amd64 - linux/arm/v7 - linux/arm64 push: false no-cache: true + load: true tags: | ${{ secrets.DOCKER_REGISTRY_USER}}/yt-local:latest - ${{ secrets.DOCKER_REGISTRY_USER}}/yt-local:v0.2.19 + ${{ secrets.DOCKER_REGISTRY_USER}}/yt-local:${{ env.VERSION }} - name: Run Trivy vulnerability scanner uses: astounds/trivy-action@v1 @@ -71,11 +69,9 @@ jobs: file: core/Dockerfile platforms: | linux/amd64 - linux/arm/v7 linux/arm64 - linux/386 push: true no-cache: false tags: | ${{ secrets.DOCKER_REGISTRY_USER}}/yt-local:latest - ${{ secrets.DOCKER_REGISTRY_USER}}/yt-local:v0.2.19 + ${{ secrets.DOCKER_REGISTRY_USER}}/yt-local:${{ env.VERSION }} @@ -3,11 +3,11 @@ YT-Local in mode public instance for docker ```console -$ cp -v config.env.example config.env +cp -v config.env.example config.env ``` ```console -$ docker-compose up -d +docker-compose up -d ``` ## Build container from source @@ -15,9 +15,9 @@ $ docker-compose up -d To rebuild this container, copy this repository locally and run: ```console -$ cd core/ +cd core/ ``` ```console -$ docker build --no-cache --tag yt-local -f Dockerfile . +docker build --no-cache --tag yt-local -f Dockerfile . ``` diff --git a/core/0001.patch b/core/0001.patch index c73e4a5..1798703 100644 --- a/core/0001.patch +++ b/core/0001.patch @@ -1,8 +1,8 @@ diff --git a/settings.py b/settings.py -index eb210c5..fce9c56 100644 +index 2de5efa..7e0a452 100644 --- a/settings.py +++ b/settings.py -@@ -589,6 +589,6 @@ def settings_page(): +@@ -591,6 +591,6 @@ def settings_page(): for func, old_value, value in to_call: func(old_value, value) @@ -11,7 +11,7 @@ index eb210c5..fce9c56 100644 else: flask.abort(400) diff --git a/youtube/__init__.py b/youtube/__init__.py -index 64aed56..437c5ad 100644 +index 0072f74..3a4a4b1 100644 --- a/youtube/__init__.py +++ b/youtube/__init__.py @@ -14,9 +14,6 @@ yt_app.url_map.strict_slashes = False @@ -25,10 +25,10 @@ index 64aed56..437c5ad 100644 def homepage(): return flask.render_template('home.html', title="YT Local") diff --git a/youtube/static/channel.css b/youtube/static/channel.css -index 030bc11..29f0c05 100644 +index e842beb..ca68246 100644 --- a/youtube/static/channel.css +++ b/youtube/static/channel.css -@@ -268,11 +268,9 @@ hr { +@@ -269,11 +269,9 @@ hr { .item-box { display: grid; diff --git a/core/Dockerfile b/core/Dockerfile index 79ffae4..bedad4f 100644 --- a/core/Dockerfile +++ b/core/Dockerfile @@ -7,7 +7,7 @@ ENV LC_ALL=C.UTF-8 ARG APP_DIR="/srv/app" ARG YT_REPO="https://git.fridu.us/heckyel/yt-local.git" -ARG YT_BRANCH="v0.2.19" +ARG YT_BRANCH="v0.2.20" RUN apk update && \ apk upgrade && \ |