File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 3535env :
3636 REGISTRY : ghcr.io
3737 IMAGE_NAME : ${{ github.repository }}
38- PYTHON_VERSION : 3.12
38+ PYTHON_VERSION : 3.13
3939jobs :
4040 fetch-distroless-versions :
4141 name : Fetch Latest Distroless Versions
@@ -111,6 +111,10 @@ jobs:
111111 pull-requests : write
112112 steps :
113113 - uses : actions/checkout@v4
114+ - name : Set up Python
115+ uses : actions/setup-python@v5
116+ with :
117+ python-version : ${{ env.PYTHON_VERSION }}
114118 - name : Run unittests
115119 run : |
116120 cd agent
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ cov = [
1818]
1919
2020[[envs .all .matrix ]]
21- python = [" 3.12 " ]
21+ python = [" 3.13 " ]
2222
2323[envs .lint ]
2424detached = true
Original file line number Diff line number Diff line change 1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17- FROM python:3.12-bookworm AS builder
17+ ARG PYTHON_VERSION
18+
19+ FROM python:${PYTHON_VERSION}-bookworm AS builder
1820
1921ARG AGENT_VERSION
2022
@@ -51,12 +53,12 @@ LABEL org.opencontainers.image.base.name="nvcr.io/nvidia/distroless/python:${PYT
5153 org.opencontainers.image.licenses="Apache-2.0" \
5254 org.opencontainers.image.title="skyhook-agent" \
5355 org.opencontainers.image.version="${AGENT_VERSION}" \
54- org.opencontainers.image.revision="${GIT_SHA}"
56+ org.opencontainers.image.revision="${GIT_SHA}" \
5557 python.version="${PYTHON_VERSION}" \
5658 distroless.version="${DISTROLESS_VERSION}"
5759
5860# Copy the installed packages and scripts from builder
59- COPY --from=builder /code/venv/lib/python3.12 /site-packages /usr/local/lib/python3.12 /site-packages
61+ COPY --from=builder /code/venv/lib/python${PYTHON_VERSION} /site-packages /usr/local/lib/python${PYTHON_VERSION} /site-packages
6062COPY --from=builder /code/venv/bin/controller /usr/local/bin/
6163
6264# Run as root so we can chroot
You can’t perform that action at this time.
0 commit comments