docker: GitHub doesn't show labels due to multi-arch image -> add annotation level index
This commit is contained in:
parent
ada40d05ec
commit
5d48716ef1
2 changed files with 11 additions and 9 deletions
4
.github/workflows/docker.yml
vendored
4
.github/workflows/docker.yml
vendored
|
|
@ -48,6 +48,10 @@ jobs:
|
||||||
type=raw,value=latest,enable={{is_default_branch}}
|
type=raw,value=latest,enable={{is_default_branch}}
|
||||||
labels: |
|
labels: |
|
||||||
org.opencontainers.image.created={{commit_date 'YYYY-MM-DDTHH:mm:ss.SSS[Z]'}}
|
org.opencontainers.image.created={{commit_date 'YYYY-MM-DDTHH:mm:ss.SSS[Z]'}}
|
||||||
|
env:
|
||||||
|
# otherwise labels are not shown on GitHub due to multi-arch image: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#adding-a-description-to-multi-arch-images
|
||||||
|
# https://github.com/docker/metadata-action#annotations
|
||||||
|
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
|
||||||
-
|
-
|
||||||
name: Login to Docker Hub
|
name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
|
|
||||||
16
Dockerfile
16
Dockerfile
|
|
@ -75,28 +75,26 @@ ENV BRANCH=${BRANCH}
|
||||||
ENV NOW=${NOW}
|
ENV NOW=${NOW}
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="free-games-claimer" \
|
LABEL org.opencontainers.image.title="free-games-claimer" \
|
||||||
# org.opencontainers.image.name="free-games-claimer" \
|
|
||||||
org.opencontainers.image.description="Automatically claims free games on the Epic Games Store, Amazon Prime Gaming and GOG" \
|
org.opencontainers.image.description="Automatically claims free games on the Epic Games Store, Amazon Prime Gaming and GOG" \
|
||||||
org.opencontainers.image.url="https://github.com/vogler/free-games-claimer" \
|
org.opencontainers.image.url="https://github.com/vogler/free-games-claimer" \
|
||||||
org.opencontainers.image.source="https://github.com/vogler/free-games-claimer"
|
org.opencontainers.image.source="https://github.com/vogler/free-games-claimer"
|
||||||
# org.opencontainers.image.revision=${COMMIT} \
|
# org.opencontainers.image.name="free-games-claimer" \
|
||||||
# org.opencontainers.image.ref.name=${BRANCH} \
|
# org.opencontainers.image.ref.name=${BRANCH} \
|
||||||
# org.opencontainers.image.base.name="ubuntu:jammy" \
|
# org.opencontainers.image.base.name="ubuntu:jammy" \
|
||||||
# org.opencontainers.image.version="latest"
|
|
||||||
|
|
||||||
# Configure VNC via environment variables:
|
# Configure VNC via environment variables:
|
||||||
ENV VNC_PORT 5900
|
ENV VNC_PORT=5900
|
||||||
ENV NOVNC_PORT 6080
|
ENV NOVNC_PORT=6080
|
||||||
EXPOSE 5900
|
EXPOSE 5900
|
||||||
EXPOSE 6080
|
EXPOSE 6080
|
||||||
|
|
||||||
# Configure Xvfb via environment variables:
|
# Configure Xvfb via environment variables:
|
||||||
ENV WIDTH 1920
|
ENV WIDTH=1920
|
||||||
ENV HEIGHT 1080
|
ENV HEIGHT=1080
|
||||||
ENV DEPTH 24
|
ENV DEPTH=24
|
||||||
|
|
||||||
# Show browser instead of running headless
|
# Show browser instead of running headless
|
||||||
ENV SHOW 1
|
ENV SHOW=1
|
||||||
|
|
||||||
# Script to setup display server & VNC is always executed.
|
# Script to setup display server & VNC is always executed.
|
||||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue