diff --git a/tasks/docker-registry/task.yaml b/tasks/docker-registry/task.yaml index d62b189..58d59dc 100644 --- a/tasks/docker-registry/task.yaml +++ b/tasks/docker-registry/task.yaml @@ -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)