File tree Expand file tree Collapse file tree 5 files changed +18
-0
lines changed Expand file tree Collapse file tree 5 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -298,6 +298,8 @@ jobs:
298
298
uses : redhat-actions/buildah-build@v2
299
299
with :
300
300
image : ${{ github.event.repository.name }}
301
+ build-args : |
302
+ GUIDELLM_BUILD_TYPE=dev
301
303
tags : " pr-${{ github.event.number }}"
302
304
containerfiles : |
303
305
./Containerfile
Original file line number Diff line number Diff line change @@ -256,6 +256,8 @@ jobs:
256
256
uses : redhat-actions/buildah-build@v2
257
257
with :
258
258
image : ${{ github.event.repository.name }}
259
+ build-args : |
260
+ GUIDELLM_BUILD_TYPE=nightly
259
261
tags : nightly
260
262
containerfiles : |
261
263
./Containerfile
Original file line number Diff line number Diff line change @@ -300,6 +300,8 @@ jobs:
300
300
uses : redhat-actions/buildah-build@v2
301
301
with :
302
302
image : ${{ github.event.repository.name }}
303
+ build-args : |
304
+ GUIDELLM_BUILD_TYPE=candidate
303
305
# TODO: Tag version
304
306
tags : latest
305
307
containerfiles : |
Original file line number Diff line number Diff line change @@ -299,6 +299,8 @@ jobs:
299
299
uses : redhat-actions/buildah-build@v2
300
300
with :
301
301
image : ${{ github.event.repository.name }}
302
+ build-args : |
303
+ GUIDELLM_BUILD_TYPE=release
302
304
# TODO: Tag version
303
305
tags : latest stable
304
306
containerfiles : |
Original file line number Diff line number Diff line change 1
1
ARG BASE_IMAGE=docker.io/python:3.13-slim
2
2
3
+ # release: take the last version and add a post if build iteration
4
+ # candidate: increment to next minor, add 'rc' with build iteration
5
+ # nightly: increment to next minor, add 'a' with build iteration
6
+ # alpha: increment to next minor, add 'a' with build iteration
7
+ # dev: increment to next minor, add 'dev' with build iteration
8
+ ARG GUIDELLM_BUILD_TYPE=dev
9
+
3
10
# Use a multi-stage build to create a lightweight production image
4
11
FROM $BASE_IMAGE as builder
5
12
@@ -9,6 +16,9 @@ USER root
9
16
# Copy repository files
10
17
COPY / /opt/app-root/src
11
18
19
+ # Set correct build type for versioning
20
+ ENV GUIDELLM_BUILD_TYPE=$GUIDELLM_BUILD_TYPE
21
+
12
22
# Create a venv and install guidellm
13
23
RUN python3 -m venv /opt/app-root/guidellm \
14
24
&& /opt/app-root/guidellm/bin/pip install --no-cache-dir /opt/app-root/src
You can’t perform that action at this time.
0 commit comments