@@ -1,17 +1,14 @@
|
|||||||
name: 'Tag Build and Push Docker image'
|
name: 'Tag Build and Push Docker image'
|
||||||
description: 'Tags version in current repo, builds docker image and pushes it to registry'
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
registry: # id of input
|
registry: # id of input
|
||||||
description: 'docker regisry host name'
|
description: 'docker regisry host name'
|
||||||
required: true
|
|
||||||
type: string
|
type: string
|
||||||
default: 'gitea.phadric.de'
|
default: 'gitea.phadric.de'
|
||||||
cache-registry: # id of input
|
cache-registry: # id of input
|
||||||
description: 'docker regisry host name'
|
description: 'docker regisry host name'
|
||||||
required: true
|
|
||||||
default: 'imagecache.phadric.de'
|
default: 'imagecache.phadric.de'
|
||||||
type: string
|
type: string
|
||||||
image_name:
|
image_name:
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ jobs:
|
|||||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
||||||
- name: Verify Action
|
- name: Verify Action
|
||||||
run: actionlint -ignore 'unexpected key "description" for "workflow" section' -ignore 'nexpected key "inputs" for "workflow" section.' -ignore 'unexpected key "runs" for "workflow" section.' -ignore '"on" section is missing in workflow' -ignore '"jobs" section is missing in workflow' action.yml
|
run: actionlint -ignore 'unexpected key "description" for "workflow" section' -ignore 'nexpected key "inputs" for "workflow" section.' -ignore 'unexpected key "runs" for "workflow" section.' -ignore '"on" section is missing in workflow' -ignore '"jobs" section is missing in workflow' action.yml
|
||||||
|
- name: Verify Workflow
|
||||||
|
run: actionlint -ignore 'label "slim" is unknown' .github/workflows/docker-build.yml
|
||||||
- name: tag latest after success
|
- name: tag latest after success
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
id: tag
|
id: tag
|
||||||
|
|||||||
Reference in New Issue
Block a user