init
This commit is contained in:
parent
fbd099fe0f
commit
7e7e260600
@ -14,10 +14,10 @@ spec:
|
||||
type: string
|
||||
description: Nx workspace project name to lint and test
|
||||
|
||||
- name: node-version
|
||||
- name: nodejsImageName
|
||||
type: string
|
||||
default: "18"
|
||||
description: Node.js version (e.g., 18, 20)
|
||||
default: "node:slim"
|
||||
description: Node.js image (e.g., node:23-slim)
|
||||
|
||||
workspaces:
|
||||
- name: source
|
||||
@ -38,7 +38,7 @@ spec:
|
||||
|
||||
steps:
|
||||
- name: lint-and-test
|
||||
image: node:$(params.node-version)
|
||||
image: $(params.nodejsImageName)
|
||||
workingDir: /workspace/source
|
||||
script: |
|
||||
#!/usr/bin/env bash
|
||||
|
@ -11,10 +11,10 @@ spec:
|
||||
- name: ref
|
||||
type: string
|
||||
description: Full Git ref string (e.g., refs/tags/v0.2.0)
|
||||
- name: node-version
|
||||
- name: nodejsImageName
|
||||
type: string
|
||||
description: Node.js version to use
|
||||
default: "18"
|
||||
default: "node:slim"
|
||||
description: Node.js image (e.g., node:23-slim)
|
||||
workspaces:
|
||||
- name: source
|
||||
description: Git-cloned source code
|
||||
@ -23,7 +23,7 @@ spec:
|
||||
description: Extracted project version (e.g. 0.2.0)
|
||||
steps:
|
||||
- name: verify-tag-version
|
||||
image: node:$(params.node-version)
|
||||
image: $(params.nodejsImageName)
|
||||
workingDir: /workspace/source
|
||||
script: |
|
||||
#!/usr/bin/env bash
|
||||
|
@ -9,7 +9,7 @@ spec:
|
||||
description: Subdirectory within the repo where the source code is located
|
||||
default: ""
|
||||
|
||||
- name: imageName
|
||||
- name: pythonImageName
|
||||
type: string
|
||||
description: Python version to use (e.g., 3.9, 3.11)
|
||||
default: "python:3.11-slim"
|
||||
@ -42,7 +42,7 @@ spec:
|
||||
|
||||
steps:
|
||||
- name: install-dependencies
|
||||
image: $(params.imageName)
|
||||
image: $(params.pythonImageName)
|
||||
workingDir: /workspace/source
|
||||
script: |
|
||||
#!/usr/bin/env bash
|
||||
|
@ -9,7 +9,7 @@ spec:
|
||||
description: Subdirectory within the repo where the source code is located
|
||||
default: ""
|
||||
|
||||
- name: imageName
|
||||
- name: pythonImageName
|
||||
type: string
|
||||
description: Python version to use (e.g., 3.9, 3.11)
|
||||
default: "python:3.11-slim"
|
||||
@ -43,7 +43,7 @@ spec:
|
||||
|
||||
steps:
|
||||
- name: install-dependencies
|
||||
image: $(params.imageName)
|
||||
image: $(params.pythonImageName)
|
||||
workingDir: /workspace/source
|
||||
script: |
|
||||
#!/usr/bin/env bash
|
||||
|
@ -8,7 +8,7 @@ spec:
|
||||
type: string
|
||||
description: Path to the built artifact directory from python-build
|
||||
|
||||
- name: imageName
|
||||
- name: pythonImageName
|
||||
type: string
|
||||
description: Python version to use (e.g., 3.9, 3.11)
|
||||
default: "python:3.11-slim"
|
||||
@ -40,7 +40,7 @@ spec:
|
||||
|
||||
steps:
|
||||
- name: upload-to-pypi
|
||||
image: $(params.imageName)
|
||||
image: $(params.pythonImageName)
|
||||
workingDir: /workspace/source
|
||||
script: |
|
||||
#!/usr/bin/env bash
|
||||
|
@ -9,7 +9,7 @@ spec:
|
||||
description: Subdirectory within the workspace where the tests are located
|
||||
default: ""
|
||||
|
||||
- name: imageName
|
||||
- name: pythonImageName
|
||||
type: string
|
||||
description: Python version to use (e.g., 3.9, 3.11)
|
||||
default: "python:3.11-slim"
|
||||
@ -38,7 +38,7 @@ spec:
|
||||
|
||||
steps:
|
||||
- name: install-dependencies
|
||||
image: $(params.imageName)
|
||||
image: $(params.pythonImageName)
|
||||
workingDir: /workspace/source
|
||||
script: |
|
||||
#!/usr/bin/env bash
|
||||
|
@ -13,7 +13,7 @@ spec:
|
||||
type: string
|
||||
description: Full Git ref string (e.g., refs/tags/v0.2.0)
|
||||
|
||||
- name: imageName
|
||||
- name: pythonImageName
|
||||
type: string
|
||||
description: Python image to use (e.g., python:3.9, python:3.11)
|
||||
default: "python:3.11-slim"
|
||||
@ -28,7 +28,7 @@ spec:
|
||||
|
||||
steps:
|
||||
- name: verify-tag
|
||||
image: $(params.imageName)
|
||||
image: $(params.pythonImageName)
|
||||
workingDir: /workspace/source
|
||||
script: |
|
||||
#!/usr/bin/env bash
|
||||
|
Loading…
x
Reference in New Issue
Block a user