Files
gh-action-readme/testdata/yaml-fixtures/actions/docker/with-environment.yml
Ismo Vuorinen b80ecfce92 chore: even more linting, test fixes (#24)
* 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
2025-08-06 23:44:32 +03:00

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'