fix: rename docker_context to docker_build_context (#8)

This commit is contained in:
Slava 2025-04-03 10:30:01 +03:00 committed by GitHub
parent 8aaf68aad6
commit dcc268ee66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ on:
description: Dockerfile
required: true
type: string
docker_context:
docker_build_context:
default: .
description: Docker build context
required: false
@ -63,7 +63,7 @@ on:
env:
DOCKER_FILE: ${{ inputs.docker_file }}
DOCKER_CONTEXT: ${{ inputs.docker_context }}
DOCKER_BUILD_CONTEXT: ${{ inputs.docker_build_context }}
DOCKERHUB_REPO: ${{ inputs.dockerhub_repo }}
BUILD_ARGS: ${{ inputs.build_args }}
TAG_LATEST: ${{ inputs.tag_latest }}
@ -144,7 +144,7 @@ jobs:
id: build
uses: docker/build-push-action@v6
with:
context: ${{ env.DOCKER_CONTEXT }}
context: ${{ env.DOCKER_BUILD_CONTEXT }}
file: ${{ env.DOCKER_FILE }}
platforms: ${{ env.PLATFORM }}
push: true

View File

@ -22,7 +22,7 @@
| Variable | Description | Default |
| ---------------------- | ---------------------------------- | ------------------- |
| `docker_file` | Path to Dockerfile | `docker/Dockerfile` |
| `docker_context` | Docker build context | `.` |
| `docker_build_context` | Docker build context | `.` |
| `dockerhub_repo` | DockerHub repository | `codexstorage/test` |
| `build_args` | Build arguments | `''` |
| `tag_latest` | Set latest tag for Docker images | `true` |