🚧 github: Refactor to allow setting image tag from main workflow

test/github-actions
Gerber, Mike 2 years ago
parent a3c193043b
commit 3b2fa5b3a9

@ -4,6 +4,9 @@ on:
subimage: subimage:
required: true required: true
type: string type: string
tags:
required: true
type: List
secrets: secrets:
DOCKERHUB_USERNAME: DOCKERHUB_USERNAME:
required: true required: true
@ -38,4 +41,3 @@ jobs:
build-args: build-args:
DRONE_COMMIT=${{ github.sha }} DRONE_COMMIT=${{ github.sha }}
push: true push: true
tags: quratorspk/ocrd-galley-${{ inputs.subimage }}:${{ github.sha }}

@ -18,6 +18,8 @@ jobs:
uses: ./.github/workflows/build-subimage.yml uses: ./.github/workflows/build-subimage.yml
with: with:
subimage: ${{ matrix.subimage }} subimage: ${{ matrix.subimage }}
tags:
- quratorspk/ocrd-galley-${{ inputs.subimage }}:${{ github.sha }}
secrets: inherit secrets: inherit
build-rest: build-rest:
@ -28,6 +30,8 @@ jobs:
uses: ./.github/workflows/build-subimage.yml uses: ./.github/workflows/build-subimage.yml
with: with:
subimage: ${{ matrix.subimage }} subimage: ${{ matrix.subimage }}
tags:
- quratorspk/ocrd-galley-${{ inputs.subimage }}:${{ github.sha }}
secrets: inherit secrets: inherit

Loading…
Cancel
Save