From 3b2fa5b3a9675d9690a99de2a668a483d92e4557 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Thu, 9 Feb 2023 17:29:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20github:=20Refactor=20to=20allow?= =?UTF-8?q?=20setting=20image=20tag=20from=20main=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-subimage.yml | 4 +++- .github/workflows/build.yml | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-subimage.yml b/.github/workflows/build-subimage.yml index eaa3ed4..7727d8e 100644 --- a/.github/workflows/build-subimage.yml +++ b/.github/workflows/build-subimage.yml @@ -4,6 +4,9 @@ on: subimage: required: true type: string + tags: + required: true + type: List secrets: DOCKERHUB_USERNAME: required: true @@ -38,4 +41,3 @@ jobs: build-args: DRONE_COMMIT=${{ github.sha }} push: true - tags: quratorspk/ocrd-galley-${{ inputs.subimage }}:${{ github.sha }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0a53ec2..bd0de2d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,6 +18,8 @@ jobs: uses: ./.github/workflows/build-subimage.yml with: subimage: ${{ matrix.subimage }} + tags: + - quratorspk/ocrd-galley-${{ inputs.subimage }}:${{ github.sha }} secrets: inherit build-rest: @@ -28,6 +30,8 @@ jobs: uses: ./.github/workflows/build-subimage.yml with: subimage: ${{ matrix.subimage }} + tags: + - quratorspk/ocrd-galley-${{ inputs.subimage }}:${{ github.sha }} secrets: inherit