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