38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
name: 'Tag Build and Push Docker image'
|
|
description: 'Tags verion in current repo, builds docker image and pushes it to registry'
|
|
inputs:
|
|
registry: # id of input
|
|
description: 'docker regisry host name'
|
|
required: true
|
|
default: 'gitea.phadric.de'
|
|
cache-registry: # id of input
|
|
description: 'docker regisry host name'
|
|
required: true
|
|
default: 'imagecache.phadric.de'
|
|
image_name:
|
|
description: 'name of the dockerimage'
|
|
required: true
|
|
default: ${{ github.repository }}
|
|
token:
|
|
description: 'repo auth token'
|
|
required: true
|
|
checkout:
|
|
description: 'checkout repo first'
|
|
default: 'true'
|
|
tag:
|
|
description: 'checkout repo first'
|
|
default: 'true'
|
|
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Checkout repository
|
|
if: ${{ inputs.checkout == 'true' }}
|
|
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
|
|
with:
|
|
fetch-depth: '0'
|
|
- name: debug Stuff
|
|
run: |
|
|
mount
|
|
ls -latr /opt/hostedtoolcache/ |