1
0
forked from jk_yinzy/cicd-test

修改镜像

This commit is contained in:
君肯普通 2025-12-05 10:31:50 +08:00
parent 98ca237dae
commit 90be0e4a80

View File

@ -9,7 +9,7 @@ clone:
steps: steps:
# 自动检测是否存在 Java (pom.xml) # 自动检测是否存在 Java (pom.xml)
- name: java-build - name: java-build
image: maven:3.8-eclipse-temurin-17 image: maven:3.9-eclipse-temurin
commands: commands:
- if [ -f pom.xml ]; then mvn clean compile; fi - if [ -f pom.xml ]; then mvn clean compile; fi
when: when:
@ -17,7 +17,7 @@ steps:
# 自动检测是否存在 Python (requirements.txt) # 自动检测是否存在 Python (requirements.txt)
- name: python-test - name: python-test
image: python:3.9-slim image: python:3.12.0-slim
commands: commands:
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- if [ -f test_example.py ]; then python -m pytest test_example.py -v; fi - if [ -f test_example.py ]; then python -m pytest test_example.py -v; fi