Skip to content

Commit f67e83b

Browse files
committed
chore: update python version for agent
1 parent ce2dd2b commit f67e83b

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.github/workflows/agent-ci.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ on:
3535
env:
3636
REGISTRY: ghcr.io
3737
IMAGE_NAME: ${{ github.repository }}
38-
PYTHON_VERSION: 3.12
38+
PYTHON_VERSION: 3.13
3939
jobs:
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

agent/hatch.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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]
2424
detached = true

containers/agent.Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
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

1921
ARG 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
6062
COPY --from=builder /code/venv/bin/controller /usr/local/bin/
6163

6264
# Run as root so we can chroot

0 commit comments

Comments
 (0)