mirror of
https://github.com/qurator-spk/ocrd-galley.git
synced 2025-07-27 21:59:52 +02:00
🚧 github: Push with tags
This commit is contained in:
parent
edc25ed890
commit
e9df223d21
2 changed files with 21 additions and 2 deletions
6
.github/workflows/build-subimage.yml
vendored
6
.github/workflows/build-subimage.yml
vendored
|
@ -7,6 +7,10 @@ on:
|
||||||
tags:
|
tags:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
cache-from:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default:
|
||||||
secrets:
|
secrets:
|
||||||
DOCKERHUB_USERNAME:
|
DOCKERHUB_USERNAME:
|
||||||
required: true
|
required: true
|
||||||
|
@ -42,3 +46,5 @@ jobs:
|
||||||
DRONE_COMMIT=${{ github.sha }}
|
DRONE_COMMIT=${{ github.sha }}
|
||||||
tags: ${{ inputs.tags }}
|
tags: ${{ inputs.tags }}
|
||||||
push: true
|
push: true
|
||||||
|
|
||||||
|
cache-from: ${{ inputs.cache-from }}
|
||||||
|
|
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
|
@ -55,11 +55,16 @@ jobs:
|
||||||
|
|
||||||
|
|
||||||
# At this point, we have successfully built, uploaded and tested the images. We now just need to add
|
# At this point, we have successfully built, uploaded and tested the images. We now just need to add
|
||||||
# tags.
|
# tags. We do this by building again, but using the formerly built images to
|
||||||
|
# cache from.
|
||||||
|
|
||||||
tag:
|
tag:
|
||||||
needs: test
|
needs: test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
subimage: ["core", "dinglehopper"]
|
||||||
|
# TODO have one list, not multiple
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
|
@ -67,6 +72,14 @@ jobs:
|
||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
name/app
|
quratorspk/ocrd-galley-${{ matrix.subimage }}
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
|
-
|
||||||
|
name: Push with tags (from cache)
|
||||||
|
uses: ./.github/workflows/build-subimage.yml
|
||||||
|
with:
|
||||||
|
subimage: ${{ matrix.subimage }}
|
||||||
|
cache-from: quratorspk/ocrd-galley-${{ matrix.subimage }}:${{ github.sha }}
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
secrets: inherit
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue