From 3525f4346924a4a1975b263fbe7c9a21aeeb66f7 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Wed, 6 Oct 2021 12:27:02 +0200 Subject: [PATCH 1/2] Limit branches/tags of container build Limit branch --- .github/workflows/containers.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml index f6351d06..fe2b078b 100644 --- a/.github/workflows/containers.yml +++ b/.github/workflows/containers.yml @@ -1,9 +1,11 @@ name: Build and push containers on: - # Automatically triggered by a testing workflow passing + # Automatically triggered by a testing workflow passing, but this is only checked when it lands in the `master`/default branch workflow_run: workflows: ["ChangeDetection.io Test"] + branches: [master] + tags: ['0.*'] types: [completed] # Or a new tagged release @@ -24,6 +26,7 @@ jobs: echo c: ${{ github.event.workflow_run.conclusion }} echo r: ${{ github.event.workflow_run }} echo tname: "${{ github.event.release.tag_name }}" + echo headbranch: -${{ github.event.workflow_run.head_branch }}- set build-push-containers: From 4d0bd58eb1cf60d079c7402ddbaff51b9ee82716 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Wed, 6 Oct 2021 13:07:56 +0200 Subject: [PATCH 2/2] Prefer GHCR.io over DockerHub (#245) * Prefer GHCR.io over DockerHub (DockerHub limits pulls) --- README.md | 10 +++++----- docker-compose.yml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 45bf6cf5..a6f9f0ec 100644 --- a/README.md +++ b/README.md @@ -41,15 +41,15 @@ Run the python code on your own machine by cloning this repository, or with