Skip to content

Commit

Permalink
feat: update metadata for container image
Browse files Browse the repository at this point in the history
  • Loading branch information
mogeko committed Nov 21, 2024
1 parent 5479ea6 commit cad9fc1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
tags: ["*"]
workflow_dispatch:

env:
DOCS_URL: https://mogeko.github.io/docker-vlmcsd/vlmcsd.8.pdf
IMAGE: vlmcsd

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -31,12 +35,16 @@ jobs:
uses: docker/[email protected]
with:
images: |
docker.io/${{ secrets.DOCKER_USERNAME }}/vlmcsd
ghcr.io/${{ github.actor }}/vlmcsd
docker.io/${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE }}
ghcr.io/${{ github.actor }}/${{ env.IMAGE }}
tags: |
type=edge,branch=master,enable={{is_default_branch}}
type=ref,event=tag
type=sha,prefix=sha-,format=short
type=ref,event=tag,enable=true
type=sha,prefix=sha-,format=short,enable=true
labels: |
org.opencontainers.image.documentation=${{ env.DOCS_URL }}
org.opencontainers.image.title=${{ env.IMAGE }}
org.opencontainers.image.vendor=${{ github.actor }}
- name: Setup QEMU
uses: docker/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN MAX_THREADS="$(nproc)" make -C /opt/vlmcsd/
FROM gcr.io/distroless/base-nossl-debian12:nonroot

LABEL org.opencontainers.image.description="A rootless container running vlmcsd"
LABEL org.opencontainers.image.author="Zheng Junyi <[email protected]>"
LABEL org.opencontainers.image.authors="Zheng Junyi <[email protected]>"
LABEL org.opencontainers.image.licenses="MIT"

COPY --from=builder /opt/vlmcsd/bin/vlmcsd /usr/bin/vlmcsd
Expand Down

0 comments on commit cad9fc1

Please sign in to comment.