From 4845408242817637d9e189ddae708a9da6114cef Mon Sep 17 00:00:00 2001 From: David Claeys Date: Thu, 1 Aug 2024 09:37:03 +0200 Subject: [PATCH] update dockerfile and add labels to docker file --- .gitea/workflows/action.yml | 7 +++++++ Dockerfile | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/.gitea/workflows/action.yml b/.gitea/workflows/action.yml index 7dbd3ff..5c680cd 100644 --- a/.gitea/workflows/action.yml +++ b/.gitea/workflows/action.yml @@ -26,6 +26,11 @@ jobs: registry: git.claeyscloud.com username: nologin password: ${{ secrets.PACKAGE_TOKEN }} + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v5 + with: + type=semver,pattern={{version}} - name: Build and push uses: https://github.com/docker/build-push-action@v5 with: @@ -33,3 +38,5 @@ jobs: push: true tags: | git.claeyscloud.com/david/epg-info + labels: ${{ steps.meta.outputs.labels }} + diff --git a/Dockerfile b/Dockerfile index 62a782f..8ac12ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,6 +29,10 @@ RUN apk update \ && rm LICENSE \ && rm README.md \ && rm SITES.md \ + && rm -rf tests \ + && rm sites/**/readme.md \ + && rm -rf sites/**/__data__ \ + && rm sites/**/**.test.js \ && ln -s /config/channels.xml $(echo "${WORKDIR}/channels.xml") \ && mkdir /public COPY start.sh $WORKDIR