From 1bc9347b7bd59884a4af0b9aed4b37cf5ab39297 Mon Sep 17 00:00:00 2001 From: BAK BYEONG JUN Date: Sat, 12 Apr 2025 08:20:54 +0000 Subject: [PATCH] init --- tasks/pybuild/task.yaml | 6 +++--- tasks/pylint/task.yaml | 6 +++--- tasks/pypi/task.yaml | 6 +++--- tasks/pyversion/task.yaml | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tasks/pybuild/task.yaml b/tasks/pybuild/task.yaml index 19b39ec..12c3490 100644 --- a/tasks/pybuild/task.yaml +++ b/tasks/pybuild/task.yaml @@ -9,10 +9,10 @@ spec: description: Subdirectory within the repo where the source code is located default: "" - - name: python-version + - name: imageName type: string description: Python version to use (e.g., 3.9, 3.11) - default: "3.9" + default: "python:3.11-slim" - name: pypi-username type: string @@ -42,7 +42,7 @@ spec: steps: - name: install-dependencies - image: python:$(params.python-version)-slim + image: $(params.imageName) workingDir: /workspace/source script: | #!/usr/bin/env bash diff --git a/tasks/pylint/task.yaml b/tasks/pylint/task.yaml index 2469e71..435daca 100644 --- a/tasks/pylint/task.yaml +++ b/tasks/pylint/task.yaml @@ -9,10 +9,10 @@ spec: description: Subdirectory within the repo where the source code is located default: "" - - name: python-version + - name: imageName type: string description: Python version to use (e.g., 3.9, 3.11) - default: "3.9" + default: "python:3.11-slim" - name: pylint-args type: string @@ -43,7 +43,7 @@ spec: steps: - name: install-dependencies - image: python:$(params.python-version)-slim + image: $(params.imageName) workingDir: /workspace/source script: | #!/usr/bin/env bash diff --git a/tasks/pypi/task.yaml b/tasks/pypi/task.yaml index 0bfbcdd..c5aa6a2 100644 --- a/tasks/pypi/task.yaml +++ b/tasks/pypi/task.yaml @@ -8,10 +8,10 @@ spec: type: string description: Path to the built artifact directory from python-build - - name: python-version + - name: imageName type: string description: Python version to use (e.g., 3.9, 3.11) - default: "3.9" + default: "python:3.11-slim" - name: pypi-username type: string @@ -40,7 +40,7 @@ spec: steps: - name: upload-to-pypi - image: python:$(params.python-version)-slim + image: $(params.imageName) workingDir: /workspace/source script: | #!/usr/bin/env bash diff --git a/tasks/pyversion/task.yaml b/tasks/pyversion/task.yaml index 5c4f231..205b4ed 100644 --- a/tasks/pyversion/task.yaml +++ b/tasks/pyversion/task.yaml @@ -13,10 +13,10 @@ spec: type: string description: Full Git ref string (e.g., refs/tags/v0.2.0) - - name: python-version + - name: imageName type: string description: Python version to use (e.g., 3.9, 3.11) - default: "3.9" + default: "python:3.11-slim" workspaces: - name: source @@ -28,7 +28,7 @@ spec: steps: - name: verify-tag - image: python:$(params.python-version)-slim + image: $(params.imageName) workingDir: /workspace/source script: | #!/usr/bin/env bash