This commit is contained in:
병준 박 2025-04-12 14:42:17 +00:00
parent 4e4918ef7c
commit 1589193b83

View File

@ -10,22 +10,30 @@ spec:
default: ""
- name: imageName
description: Base image name with registry (e.g. docker.unbox-x.net/registry/unbox-x-aisi-cron-app)
type: string
description: Base image name with registry (e.g. docker.unbox-x.net/registry/unbox-x-aisi-cron-app)
- name: tag
description: Version tag to apply to the image (e.g. v0.2.0)
type: string
description: Version tag to apply to the image (e.g. v0.2.0)
- name: dockerfile
description: Path to Dockerfile
type: string
default: ./Dockerfile
description: Path to Dockerfile
- name: context
description: Build context path (relative to subdirectory)
type: string
default: .
description: Build context path (relative to subdirectory)
- name: pypi-username
type: string
description: PyPI registry username
- name: pypi-password
type: string
description: PyPI registry password
workspaces:
- name: source
@ -34,15 +42,11 @@ spec:
- name: docker-auth
description: Docker registry credentials (username + password)
- name: pypi-auth
description: Docker registry credentials (username + password)
results:
- name: imageUrl
description: Final pushed image URL with tag (e.g. registry/app:v0.2.0)
steps:
# 🔐 인증 정보 생성
- name: write-docker-config
image: alpine:3.21.3
workingDir: /workspace/source
@ -74,7 +78,6 @@ spec:
}
EOF
# 🏗️ Kaniko 공식 이미지 실행
- name: kaniko-build
image: gcr.io/kaniko-project/executor:v1.23.2
workingDir: /workspace/source
@ -88,5 +91,5 @@ spec:
- --skip-tls-verify
- --reproducible
- --verbosity=info
- --build-arg=PYPI_USERNAME=$(cat /workspace/pypi-auth/username)
- --build-arg=PYPI_PASSWORD=$(cat /workspace/pypi-auth/password)
- --build-arg=PYPI_USERNAME=$(params.pypi-username)
- --build-arg=PYPI_PASSWORD=$(params.pypi-password)