From a47c29fff474fdc394311987cb17d3e563542b7b Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Tue, 26 Oct 2021 20:17:24 +1100 Subject: [PATCH] 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. --- api_ping/Dockerfile | 1 + backfiller/Dockerfile | 1 + cutter/Dockerfile | 1 + downloader/Dockerfile | 1 + nginx/Dockerfile | 1 + playlist_manager/Dockerfile | 1 + postgres/Dockerfile | 1 + restreamer/Dockerfile | 1 + segment_coverage/Dockerfile | 1 + sheetsync/Dockerfile | 1 + thrimshim/Dockerfile | 1 + 11 files changed, 11 insertions(+) diff --git a/api_ping/Dockerfile b/api_ping/Dockerfile index 02276cb..4a414d9 100644 --- a/api_ping/Dockerfile +++ b/api_ping/Dockerfile @@ -14,4 +14,5 @@ RUN pip install /tmp/common && rm -r /tmp/common COPY api_ping /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"] diff --git a/backfiller/Dockerfile b/backfiller/Dockerfile index 4902179..011e5d3 100644 --- a/backfiller/Dockerfile +++ b/backfiller/Dockerfile @@ -15,4 +15,5 @@ RUN apk add postgresql-dev postgresql-libs COPY backfiller /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"] diff --git a/cutter/Dockerfile b/cutter/Dockerfile index 96acb71..ada9536 100644 --- a/cutter/Dockerfile +++ b/cutter/Dockerfile @@ -15,4 +15,5 @@ RUN apk add postgresql-dev postgresql-client ffmpeg COPY cutter /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"] diff --git a/downloader/Dockerfile b/downloader/Dockerfile index 3120588..db8f9bf 100644 --- a/downloader/Dockerfile +++ b/downloader/Dockerfile @@ -14,4 +14,5 @@ RUN pip install /tmp/common && rm -r /tmp/common COPY downloader /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"] diff --git a/nginx/Dockerfile b/nginx/Dockerfile index 085e408..6871061 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -2,4 +2,5 @@ FROM nginx:latest ADD nginx/generate-config / 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;\""] diff --git a/playlist_manager/Dockerfile b/playlist_manager/Dockerfile index 287961f..36c1d05 100644 --- a/playlist_manager/Dockerfile +++ b/playlist_manager/Dockerfile @@ -14,4 +14,5 @@ RUN pip install /tmp/common && rm -r /tmp/common COPY playlist_manager /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"] diff --git a/postgres/Dockerfile b/postgres/Dockerfile index 7414b81..42986b0 100644 --- a/postgres/Dockerfile +++ b/postgres/Dockerfile @@ -2,4 +2,5 @@ FROM postgres:12 COPY postgres/setup.sh /docker-entrypoint-initdb.d/setup.sh RUN chmod 0666 /docker-entrypoint-initdb.d/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 diff --git a/restreamer/Dockerfile b/restreamer/Dockerfile index 7086afa..2a17718 100644 --- a/restreamer/Dockerfile +++ b/restreamer/Dockerfile @@ -15,4 +15,5 @@ RUN apk add ffmpeg COPY restreamer /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"] diff --git a/segment_coverage/Dockerfile b/segment_coverage/Dockerfile index d301be3..20d6553 100644 --- a/segment_coverage/Dockerfile +++ b/segment_coverage/Dockerfile @@ -21,4 +21,5 @@ RUN ln -s /usr/include/locale.h /usr/include/xlocale.h \ COPY segment_coverage /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"] diff --git a/sheetsync/Dockerfile b/sheetsync/Dockerfile index 8ec51f9..85b2c82 100644 --- a/sheetsync/Dockerfile +++ b/sheetsync/Dockerfile @@ -15,4 +15,5 @@ RUN apk add postgresql-dev postgresql-client COPY sheetsync /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"] diff --git a/thrimshim/Dockerfile b/thrimshim/Dockerfile index 710af3e..8efabc8 100644 --- a/thrimshim/Dockerfile +++ b/thrimshim/Dockerfile @@ -15,4 +15,5 @@ RUN apk add postgresql-dev postgresql-libs COPY thrimshim /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"]