🚧 github: Reuse subimage workflow

This commit is contained in:
Gerber, Mike 2023-02-09 18:55:30 +01:00
parent 9b2b68ce2d
commit f1081cb721
2 changed files with 23 additions and 28 deletions

View file

@ -7,10 +7,6 @@ on:
tags:
required: true
type: string
cache-from:
required: false
type: string
default:
secrets:
DOCKERHUB_USERNAME:
required: true
@ -30,6 +26,14 @@ jobs:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
quratorspk/ocrd-galley-${{ inputs.subimage }}
tags: ${{ inputs.tags }}
-
name: Login to Docker Hub
uses: docker/login-action@v2
@ -44,7 +48,7 @@ jobs:
file: Dockerfile-${{ inputs.subimage }}
build-args:
DRONE_COMMIT=${{ github.sha }}
tags: ${{ inputs.tags }}
tags: ${{ steps.meta.outputs.tags }}
push: true
cache-from: ${{ inputs.cache-from }}
cache-from: quratorspk/ocrd-galley-${{ inputs.subimage }}:${{ github.sha }}