From cf96ab45c198fbdcb276a166a3829bc6d723c759 Mon Sep 17 00:00:00 2001 From: Alexandros Kosiaris Date: Wed, 27 Apr 2022 11:25:42 +0300 Subject: [PATCH] Support other repo owners in GH docker action Being able to functionaly utilize the same GH Docker action can be beneficial for users wanting to build, test and develop in their own repos. To do so, use ${{ github.repository_owner }} in the action. That should provide some rudimentary flexibility without breaking the canonical repo. Users of this functionality should take care to populate the required secrets in Github * DOCKERHUB_TOKEN, DOCKERHUB_USERNAME * CR_PAT --- .github/workflows/docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index b14337db..d9f4e854 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -18,7 +18,7 @@ jobs: - name: Generate Alpine Docker tag id: docker_alpine_tag run: | - DOCKER_IMAGE=miniflux/miniflux + DOCKER_IMAGE=${{ github.repository_owner }}/miniflux DOCKER_VERSION=dev if [ "${{ github.event_name }}" = "schedule" ]; then DOCKER_VERSION=nightly @@ -32,7 +32,7 @@ jobs: - name: Generate Distroless Docker tag id: docker_distroless_tag run: | - DOCKER_IMAGE=miniflux/miniflux + DOCKER_IMAGE=${{ github.repository_owner }}/miniflux DOCKER_VERSION=dev-distroless if [ "${{ github.event_name }}" = "schedule" ]; then DOCKER_VERSION=nightly-distroless