@@ -3,10 +3,13 @@ name: Docker - build and publish image
33on :
44 workflow_call :
55 inputs :
6+ gap-type :
7+ required : true
8+ type : string
69 gap-version :
710 required : true
811 type : string
9- gap-build :
12+ target :
1013 required : true
1114 type : string
1215 operating-system-base :
@@ -30,10 +33,10 @@ jobs:
3033 uses : docker/metadata-action@v5
3134 with :
3235 images : |
33- name=ghcr.io/${{ github.repository }}
36+ name=ghcr.io/${{ github.repository_owner }}/${{ inputs.gap-type }}
3437 tags : |
3538 type=sha,priority=100
36- type=raw,priority=900,value=${{ inputs.gap-version }}-${{ inputs.gap-build }}
39+ type=raw,priority=900,value=${{ inputs.gap-version }}-${{ inputs.target }}
3740
3841
3942 - name : 📦 docker -- login to ghcr-registry
@@ -54,12 +57,12 @@ jobs:
5457 - name : 🐬 docker -- build and push
5558 uses : docker/build-push-action@v6
5659 with :
57- context : ./src/dockerfiles/${{ inputs.operating-system-base }}
58- file : ./src/dockerfiles/${{ inputs.operating-system-base }}/Dockerfile
60+ context : ./src/dockerfiles/${{ inputs.gap-type}}/${{ inputs. operating-system-base }}
61+ file : ./src/dockerfiles/${{ inputs.gap-type}}/${{ inputs. operating-system-base }}/Dockerfile
5962 push : ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
6063 tags : ${{ steps.meta.outputs.tags }}
6164 labels : ${{ steps.meta.outputs.labels }}
62- target : ${{ inputs.gap-build }}
65+ target : ${{ inputs.target }}
6366 cache-from : type=gha
6467 cache-to : type=gha,mode=max`
6568 build-args : |
0 commit comments