Skip to content

Commit bb6b16e

Browse files
author
Changming Sun
committed
update
1 parent 0c8c2ab commit bb6b16e

File tree

3 files changed

+39
-40
lines changed

3 files changed

+39
-40
lines changed

build-docker-image/action.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
name: 'Build Docker Image'
2-
description: 'Builds a Docker image, supports ACR login (if ACR name provided) for base images, uses checksum tag for image-level caching (pull/push) to a registry.' # Updated description
2+
description: 'Builds a Docker image using the directory containing the Dockerfile as context. Supports ACR login for base images and uses a checksum tag for image-level caching (pull/push) to a registry.' # Updated description
33

44
inputs:
55
dockerfile:
6-
description: 'Required. Path to the Dockerfile (relative to repository root).'
7-
required: true
8-
context:
9-
description: 'Required. Path to the Docker build context directory (relative to repository root).'
6+
description: 'Required. Path to the Dockerfile (relative to repository root). The directory containing this file will be used as the build context.' # Updated description
107
required: true
118
image-name:
129
description: 'Required. Base image name for tagging and potential push/pull cache (e.g., ghcr.io/owner/repo/img, myacr.azurecr.io/img). Checksum tag will be added.'
@@ -27,9 +24,11 @@ inputs:
2724
description: 'Optional. Attempt to pull the checksum-tagged image before building to check for cache hit.'
2825
required: false
2926
default: 'true'
27+
# --- Login Inputs ---
3028
login-ghcr:
3129
description: 'Optional. Attempt login to ghcr.io using GITHUB_TOKEN. Defaults to true if image-name starts with `ghcr.io`.'
3230
required: false
31+
# Default handled dynamically
3332
azure-container-registry-name:
3433
description: 'Optional. If provided, the action will attempt `az login --identity` and `az acr login` with this name *before* the build starts (useful for base image pulls from ACR).'
3534
required: false

0 commit comments

Comments
 (0)