mirror of
https://github.com/ivuorinen/gh-action-readme.git
synced 2026-02-10 11:47:59 +00:00
* chore(lint): funcorder * chore(lint): yamlfmt, ignored broken test yaml files * chore(tests): tests do not output garbage, add coverage * chore(lint): fix editorconfig violations * chore(lint): move from eclint to editorconfig-checker * chore(lint): add pre-commit, run and fix * chore(ci): we use renovate to manage updates
40 lines
1023 B
YAML
40 lines
1023 B
YAML
---
|
|
name: 'Docker Action with Environment'
|
|
description: 'Docker action with environment variables and advanced configuration'
|
|
inputs:
|
|
dockerfile-path:
|
|
description: 'Path to the Dockerfile'
|
|
required: false
|
|
default: 'Dockerfile'
|
|
build-args:
|
|
description: 'Build arguments for Docker build'
|
|
required: false
|
|
registry-url:
|
|
description: 'Container registry URL'
|
|
required: false
|
|
username:
|
|
description: 'Registry username'
|
|
required: false
|
|
password:
|
|
description: 'Registry password'
|
|
required: false
|
|
outputs:
|
|
image-digest:
|
|
description: 'SHA digest of the built image'
|
|
image-url:
|
|
description: 'URL of the pushed image'
|
|
runs:
|
|
using: 'docker'
|
|
image: ${{ inputs.dockerfile-path }}
|
|
env:
|
|
REGISTRY_URL: ${{ inputs.registry-url }}
|
|
REGISTRY_USERNAME: ${{ inputs.username }}
|
|
REGISTRY_PASSWORD: ${{ inputs.password }}
|
|
BUILD_ARGS: ${{ inputs.build-args }}
|
|
args:
|
|
- '--build-args'
|
|
- ${{ inputs.build-args }}
|
|
branding:
|
|
icon: 'box'
|
|
color: 'orange'
|