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 registry: git.claeyscloud.com
username: nologin username: nologin
password: ${{ secrets.PACKAGE_TOKEN }} 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 - name: Build and push
uses: https://github.com/docker/build-push-action@v5 uses: https://github.com/docker/build-push-action@v5
with: with:
@ -33,3 +38,5 @@ jobs:
push: true push: true
tags: | tags: |
git.claeyscloud.com/david/epg-info git.claeyscloud.com/david/epg-info
labels: ${{ steps.meta.outputs.labels }}

View File

@ -29,6 +29,10 @@ RUN apk update \
&& rm LICENSE \ && rm LICENSE \
&& rm README.md \ && rm README.md \
&& rm SITES.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") \ && ln -s /config/channels.xml $(echo "${WORKDIR}/channels.xml") \
&& mkdir /public && mkdir /public
COPY start.sh $WORKDIR COPY start.sh $WORKDIR