feat(build): add ci_commit_sha to the containers env vars

ref: nofusscomputing/projects/gitlab-ci#49
This commit is contained in:
2025-02-26 21:55:13 +09:30
parent 9c04001d95
commit f2fb6a3540
2 changed files with 57 additions and 0 deletions

View File

@ -2,6 +2,7 @@ ARG release_name=bookworm
ARG kubernetes_version=1.29
ARG CI_COMMIT_SHA=""
FROM --platform=$TARGETPLATFORM quay.io/ansible/receptor:v1.4.4 as receptor
@ -33,7 +34,9 @@ RUN curl -fsSL https://pkgs.k8s.io/core:/stable:/v${kubernetes_version}/deb/Rele
FROM --platform=$TARGETPLATFORM python:3.11-slim-${release_name}
ARG CI_COMMIT_SHA
ENV CI_COMMIT_SHA=${CI_COMMIT_SHA}
# Ansible chucks a wobbler without. see: https://github.com/ansible/ansible/issues/78283
ENV LC_ALL en_US.UTF-8