Link images to github repo by adding a LABEL

When pushed, this tells github to associate the ghcr.io repo that was pushed to
with the github repo specified (the owner needs to match).

This does a few things.
Most importantly, this automatically gives github actions credentials to push to these
repositories when run in the context of the wubloader repo.
pull/239/head
Mike Lang 3 years ago
parent fbf9e3e4a1
commit a47c29fff4

@ -14,4 +14,5 @@ RUN pip install /tmp/common && rm -r /tmp/common
COPY api_ping /tmp/api_ping COPY api_ping /tmp/api_ping
RUN pip install /tmp/api_ping && rm -r /tmp/api_ping RUN pip install /tmp/api_ping && rm -r /tmp/api_ping
LABEL org.opencontainers.image.source https://github.com/ekimekim/wubloader
ENTRYPOINT ["python3", "-m", "api_ping"] ENTRYPOINT ["python3", "-m", "api_ping"]

@ -15,4 +15,5 @@ RUN apk add postgresql-dev postgresql-libs
COPY backfiller /tmp/backfiller COPY backfiller /tmp/backfiller
RUN pip install /tmp/backfiller && rm -r /tmp/backfiller RUN pip install /tmp/backfiller && rm -r /tmp/backfiller
LABEL org.opencontainers.image.source https://github.com/ekimekim/wubloader
ENTRYPOINT ["python3", "-m", "backfiller", "--base-dir", "/mnt"] ENTRYPOINT ["python3", "-m", "backfiller", "--base-dir", "/mnt"]

@ -15,4 +15,5 @@ RUN apk add postgresql-dev postgresql-client ffmpeg
COPY cutter /tmp/cutter COPY cutter /tmp/cutter
RUN pip install /tmp/cutter && rm -r /tmp/cutter RUN pip install /tmp/cutter && rm -r /tmp/cutter
LABEL org.opencontainers.image.source https://github.com/ekimekim/wubloader
ENTRYPOINT ["python3", "-m", "cutter", "--base-dir", "/mnt"] ENTRYPOINT ["python3", "-m", "cutter", "--base-dir", "/mnt"]

@ -14,4 +14,5 @@ RUN pip install /tmp/common && rm -r /tmp/common
COPY downloader /tmp/downloader COPY downloader /tmp/downloader
RUN pip install /tmp/downloader && rm -r /tmp/downloader RUN pip install /tmp/downloader && rm -r /tmp/downloader
LABEL org.opencontainers.image.source https://github.com/ekimekim/wubloader
ENTRYPOINT ["python3", "-m", "downloader", "--base-dir", "/mnt"] ENTRYPOINT ["python3", "-m", "downloader", "--base-dir", "/mnt"]

@ -2,4 +2,5 @@
FROM nginx:latest FROM nginx:latest
ADD nginx/generate-config / ADD nginx/generate-config /
COPY thrimbletrimmer /etc/nginx/html/thrimbletrimmer COPY thrimbletrimmer /etc/nginx/html/thrimbletrimmer
LABEL org.opencontainers.image.source https://github.com/ekimekim/wubloader
ENTRYPOINT ["/bin/sh", "-c", "/generate-config && nginx -g \"daemon off;\""] ENTRYPOINT ["/bin/sh", "-c", "/generate-config && nginx -g \"daemon off;\""]

@ -14,4 +14,5 @@ RUN pip install /tmp/common && rm -r /tmp/common
COPY playlist_manager /tmp/playlist_manager COPY playlist_manager /tmp/playlist_manager
RUN pip install /tmp/playlist_manager && rm -r /tmp/playlist_manager RUN pip install /tmp/playlist_manager && rm -r /tmp/playlist_manager
LABEL org.opencontainers.image.source https://github.com/ekimekim/wubloader
ENTRYPOINT ["python3", "-m", "playlist_manager"] ENTRYPOINT ["python3", "-m", "playlist_manager"]

@ -2,4 +2,5 @@ FROM postgres:12
COPY postgres/setup.sh /docker-entrypoint-initdb.d/setup.sh COPY postgres/setup.sh /docker-entrypoint-initdb.d/setup.sh
RUN chmod 0666 /docker-entrypoint-initdb.d/setup.sh RUN chmod 0666 /docker-entrypoint-initdb.d/setup.sh
COPY postgres/standby_setup.sh /standby_setup.sh COPY postgres/standby_setup.sh /standby_setup.sh
LABEL org.opencontainers.image.source https://github.com/ekimekim/wubloader
RUN chmod 0700 /standby_setup.sh RUN chmod 0700 /standby_setup.sh

@ -15,4 +15,5 @@ RUN apk add ffmpeg
COPY restreamer /tmp/restreamer COPY restreamer /tmp/restreamer
RUN pip install /tmp/restreamer && rm -r /tmp/restreamer RUN pip install /tmp/restreamer && rm -r /tmp/restreamer
LABEL org.opencontainers.image.source https://github.com/ekimekim/wubloader
ENTRYPOINT ["python3", "-m", "restreamer", "--base-dir", "/mnt"] ENTRYPOINT ["python3", "-m", "restreamer", "--base-dir", "/mnt"]

@ -21,4 +21,5 @@ RUN ln -s /usr/include/locale.h /usr/include/xlocale.h \
COPY segment_coverage /tmp/segment_coverage COPY segment_coverage /tmp/segment_coverage
RUN pip install /tmp/segment_coverage && rm -r /tmp/segment_coverage RUN pip install /tmp/segment_coverage && rm -r /tmp/segment_coverage
LABEL org.opencontainers.image.source https://github.com/ekimekim/wubloader
ENTRYPOINT ["python3", "-m", "segment_coverage"] ENTRYPOINT ["python3", "-m", "segment_coverage"]

@ -15,4 +15,5 @@ RUN apk add postgresql-dev postgresql-client
COPY sheetsync /tmp/sheetsync COPY sheetsync /tmp/sheetsync
RUN pip install /tmp/sheetsync && rm -r /tmp/sheetsync RUN pip install /tmp/sheetsync && rm -r /tmp/sheetsync
LABEL org.opencontainers.image.source https://github.com/ekimekim/wubloader
ENTRYPOINT ["python3", "-m", "sheetsync"] ENTRYPOINT ["python3", "-m", "sheetsync"]

@ -15,4 +15,5 @@ RUN apk add postgresql-dev postgresql-libs
COPY thrimshim /tmp/thrimshim COPY thrimshim /tmp/thrimshim
RUN pip install /tmp/thrimshim && rm -r /tmp/thrimshim RUN pip install /tmp/thrimshim && rm -r /tmp/thrimshim
LABEL org.opencontainers.image.source https://github.com/ekimekim/wubloader
ENTRYPOINT ["python3", "-m", "thrimshim"] ENTRYPOINT ["python3", "-m", "thrimshim"]

Loading…
Cancel
Save