feat(workflows): Switch base image to node:20-bookworm
Updated the CI/CD pipeline in `.forgejo/workflows/release.yml` to utilize the `node:20-bookworm` image instead of `python:3.10`. This necessitated adding steps for installing Python dependencies, given the switch to a Node.js-based image. This change accommodates projects that require both Node.js and Python environments for their setup and publishing processes, ensuring better compatibility and flexibility in handling mixed-technology stacks. This update enhances our pipeline's capability to manage dependencies more efficiently across different technologies, catering to the evolving needs of our projects.
This commit is contained in:
parent
037acf34b2
commit
d57a7367ab
1 changed files with 12 additions and 2 deletions
|
@ -10,12 +10,17 @@ jobs:
|
|||
setup:
|
||||
name: Setup and Test
|
||||
container:
|
||||
image: python:3.10
|
||||
image: node:20-bookworm
|
||||
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apt update
|
||||
apt install -y python3 python3-venv
|
||||
|
||||
- name: Set up Python environment
|
||||
run: |
|
||||
python -V
|
||||
|
@ -27,12 +32,17 @@ jobs:
|
|||
publish:
|
||||
name: Publish to PyPI
|
||||
container:
|
||||
image: python:3.10
|
||||
image: node:20-bookworm
|
||||
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apt update
|
||||
apt install -y python3 python3-venv
|
||||
|
||||
- name: Set up Python environment
|
||||
run: |
|
||||
python -m venv venv
|
||||
|
|
Loading…
Reference in a new issue