Připnout image k repozitáři přes OCI label
binárka / linux (pull_request) Successful in 11s
image / image (pull_request) Successful in 7s
testy / pytest (3.11) (pull_request) Successful in 1s
testy / pytest (3.12) (pull_request) Successful in 1s
testy / pytest (3.13) (pull_request) Successful in 1s
testy / pytest (3.14) (pull_request) Successful in 1s
binárka / linux (pull_request) Successful in 11s
image / image (pull_request) Successful in 7s
testy / pytest (3.11) (pull_request) Successful in 1s
testy / pytest (3.12) (pull_request) Successful in 1s
testy / pytest (3.13) (pull_request) Successful in 1s
testy / pytest (3.14) (pull_request) Successful in 1s
Balíček se po publikaci objevil jen pod uživatelem, záložka Packages u repozitáře zůstala prázdná. Gitea páruje kontejnerový balíček s repozitářem podle labelu org.opencontainers.image.source a image dosud neměl labely vůbec žádné. Kromě source ještě title, description, url a version — ta se plní z build argumentu, takže sedí s tím, co hlásí --version.
This commit is contained in:
1 parent
96f2fc1028
commit
5feb3cdd23
1 file changed
+9
@@ -13,6 +13,15 @@ FROM python:3.11-slim
|
||||
# Verze se jinak nemá kde vzít — v image není git ani zabalená binárka.
|
||||
ARG VERSION=neznámá
|
||||
|
||||
# Podle image.source si Gitea připne balíček k repozitáři. Bez toho labelu
|
||||
# image sice existuje, ale visí jen pod uživatelem a záložka Packages
|
||||
# u repozitáře zůstane prázdná.
|
||||
LABEL org.opencontainers.image.source="https://gitea.spacilovi.eu/david-spacil/dice-counter" \
|
||||
org.opencontainers.image.url="https://gitea.spacilovi.eu/david-spacil/dice-counter" \
|
||||
org.opencontainers.image.title="dice-counter" \
|
||||
org.opencontainers.image.description="Počitadlo kostek: telefon zapisuje skóre, notebook ukazuje zápisník" \
|
||||
org.opencontainers.image.version="$VERSION"
|
||||
|
||||
RUN useradd --system --uid 1000 --home-dir /app --shell /usr/sbin/nologin dice-counter
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
Reference in new issue
Block a user