Docker Build¶
Description¶
This workflow builds a Docker image and the artifact is uploaded to the GitHub artifact store.
Inputs¶
name | description | type | required | default |
---|---|---|---|---|
environment |
Environment to deploy |
string |
false |
"" |
image_name |
Name of the Docker image to build |
string |
false |
"" |
docker_context |
Path to the build context |
string |
false |
"" |
artifact_retention_days |
Number of days to retain the artifact |
number |
false |
"" |
docker_target |
Build target |
string |
false |
"" |
Usage¶
jobs:
job1:
uses: tx-pts-dai/github-workflows/.github/workflows/docker-build.yaml@v2
with:
environment:
# Environment to deploy
#
# Type: string
# Required: false
# Default: ""
image_name:
# Name of the Docker image to build
#
# Type: string
# Required: false
# Default: ""
docker_context:
# Path to the build context
#
# Type: string
# Required: false
# Default: ""
artifact_retention_days:
# Number of days to retain the artifact
#
# Type: number
# Required: false
# Default: ""
docker_target:
# Build target
#
# Type: string
# Required: false
# Default: ""