update dockerfile and add labels to docker file

This commit is contained in:
David Claeys 2024-08-01 09:37:03 +02:00
parent 474716755d
commit 4845408242
2 changed files with 11 additions and 0 deletions

View File

@ -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 }}

View File

@ -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