mirror of
https://github.com/logos-storage/github-actions.git
synced 2026-01-05 22:53:09 +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
|
description: Dockerfile
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
docker_context:
|
docker_build_context:
|
||||||
default: .
|
default: .
|
||||||
description: Docker build context
|
description: Docker build context
|
||||||
required: false
|
required: false
|
||||||
@ -63,7 +63,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
DOCKER_FILE: ${{ inputs.docker_file }}
|
DOCKER_FILE: ${{ inputs.docker_file }}
|
||||||
DOCKER_CONTEXT: ${{ inputs.docker_context }}
|
DOCKER_BUILD_CONTEXT: ${{ inputs.docker_build_context }}
|
||||||
DOCKERHUB_REPO: ${{ inputs.dockerhub_repo }}
|
DOCKERHUB_REPO: ${{ inputs.dockerhub_repo }}
|
||||||
BUILD_ARGS: ${{ inputs.build_args }}
|
BUILD_ARGS: ${{ inputs.build_args }}
|
||||||
TAG_LATEST: ${{ inputs.tag_latest }}
|
TAG_LATEST: ${{ inputs.tag_latest }}
|
||||||
@ -144,7 +144,7 @@ jobs:
|
|||||||
id: build
|
id: build
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: ${{ env.DOCKER_CONTEXT }}
|
context: ${{ env.DOCKER_BUILD_CONTEXT }}
|
||||||
file: ${{ env.DOCKER_FILE }}
|
file: ${{ env.DOCKER_FILE }}
|
||||||
platforms: ${{ env.PLATFORM }}
|
platforms: ${{ env.PLATFORM }}
|
||||||
push: true
|
push: true
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
| Variable | Description | Default |
|
| Variable | Description | Default |
|
||||||
| ---------------------- | ---------------------------------- | ------------------- |
|
| ---------------------- | ---------------------------------- | ------------------- |
|
||||||
| `docker_file` | Path to Dockerfile | `docker/Dockerfile` |
|
| `docker_file` | Path to Dockerfile | `docker/Dockerfile` |
|
||||||
| `docker_context` | Docker build context | `.` |
|
| `docker_build_context` | Docker build context | `.` |
|
||||||
| `dockerhub_repo` | DockerHub repository | `codexstorage/test` |
|
| `dockerhub_repo` | DockerHub repository | `codexstorage/test` |
|
||||||
| `build_args` | Build arguments | `''` |
|
| `build_args` | Build arguments | `''` |
|
||||||
| `tag_latest` | Set latest tag for Docker images | `true` |
|
| `tag_latest` | Set latest tag for Docker images | `true` |
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user