Skip to content

Commit 3e4212a

Browse files
committed
ci: task-runner
1 parent be2954a commit 3e4212a

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/task-runner.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: runner-push-to-fit2cloud
22

33
on:
4-
release:
5-
types:
6-
- published
74
workflow_dispatch:
5+
inputs:
6+
dockerImageTag:
7+
description: 'Docker Image Tag'
8+
default: 'v3.x'
9+
required: true
10+
811

912
jobs:
1013
build-and-push:
@@ -17,7 +20,7 @@ jobs:
1720
run: |
1821
DOCKER_IMAGE=registry.fit2cloud.com/metersphere/task-runner
1922
DOCKER_PLATFORMS=linux/amd64,linux/arm64
20-
TAG_NAME=${{ github.event.release.tag_name }}-python
23+
TAG_NAME=${{ github.event.inputs.dockerImageTag }}-python
2124
DOCKER_IMAGE_TAGS="--tag ${DOCKER_IMAGE}:${TAG_NAME}"
2225
echo ::set-output name=docker_image::${DOCKER_IMAGE}
2326
echo ::set-output name=version::${TAG_NAME}

Dockerfile.runner

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ARG IMG_TAG=v3.x
33
FROM registry.fit2cloud.com/metersphere/metersphere-ce:${IMG_TAG} as task-runner
44

55

6-
FROM ghcr.io/graalvm/graalpy-community:24.1.1
6+
FROM ghcr.io/graalvm/graalpy-community:24.1.2
77

88
COPY --from=task-runner /metersphere /metersphere
99
COPY --from=task-runner /task-runner /task-runner
@@ -18,4 +18,4 @@ RUN yum install -y java-21-openjdk
1818
RUN useradd -m appuser
1919
RUN echo 'appuser:appuser' | chpasswd
2020

21-
VOLUME ["/app/graalenv"]
21+
VOLUME ["/app/graalenv"]

0 commit comments

Comments
 (0)