mirror of
https://github.com/logos-storage/github-actions.git
synced 2026-01-02 13:13:06 +00:00
fix: rename docker_context to docker_build_context (#8)
This commit is contained in:
parent
8aaf68aad6
commit
dcc268ee66
6
.github/workflows/docker-reusable.yml
vendored
6
.github/workflows/docker-reusable.yml
vendored
@ -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
|
||||
|
||||
@ -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` |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user