Merge pull request 'Fix CI image build failures on runners with isolated DinD DNS' (#42) from fix/ci-image-build-dns into main
Release on merge to main / release (push) Successful in 10s
Test Python Package / unit-tests (push) Successful in 16s
Code Quality Pipeline / code-quality (push) Successful in 39s
Build CI Image / build-and-push (push) Failing after 55s
Test Python Package / integration-tests (push) Successful in 1m11s
Test Python Package / coverage-report (push) Successful in 20s
Release on merge to main / release (push) Successful in 10s
Test Python Package / unit-tests (push) Successful in 16s
Code Quality Pipeline / code-quality (push) Successful in 39s
Build CI Image / build-and-push (push) Failing after 55s
Test Python Package / integration-tests (push) Successful in 1m11s
Test Python Package / coverage-report (push) Successful in 20s
Reviewed-on: brian/python-repositories#42
This commit was merged in pull request #42.
This commit is contained in:
@@ -37,7 +37,7 @@ jobs:
|
|||||||
CI_RUNNER_TOKEN: ${{ secrets.CI_RUNNER_TOKEN }}
|
CI_RUNNER_TOKEN: ${{ secrets.CI_RUNNER_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
echo "$CI_RUNNER_TOKEN" > /tmp/uv_token
|
echo "$CI_RUNNER_TOKEN" > /tmp/uv_token
|
||||||
docker build -f docker/ci/Dockerfile \
|
docker build --network=host -f docker/ci/Dockerfile \
|
||||||
--secret id=uv_token,src=/tmp/uv_token \
|
--secret id=uv_token,src=/tmp/uv_token \
|
||||||
-t "${IMAGE}:latest" \
|
-t "${IMAGE}:latest" \
|
||||||
.
|
.
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ RUN apt-get update \
|
|||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
docker.io \
|
|
||||||
git \
|
git \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
COPY --from=docker:27-cli /usr/local/bin/docker /usr/local/bin/docker
|
||||||
COPY --from=ghcr.io/astral-sh/uv:0.7.0 /uv /usr/local/bin/uv
|
COPY --from=ghcr.io/astral-sh/uv:0.7.0 /uv /usr/local/bin/uv
|
||||||
|
|
||||||
ENV UV_PYTHON_INSTALL_DIR=/opt/uv-python \
|
ENV UV_PYTHON_INSTALL_DIR=/opt/uv-python \
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ cd "$REPO_ROOT"
|
|||||||
|
|
||||||
if [[ "$MODE" == "local" ]]; then
|
if [[ "$MODE" == "local" ]]; then
|
||||||
echo "=== Building local CI image (no push): python-repositories-ci:local ==="
|
echo "=== Building local CI image (no push): python-repositories-ci:local ==="
|
||||||
docker build -f docker/ci/Dockerfile \
|
docker build --network=host -f docker/ci/Dockerfile \
|
||||||
--secret "id=uv_token,src=${TOKEN_FILE}" \
|
--secret "id=uv_token,src=${TOKEN_FILE}" \
|
||||||
-t python-repositories-ci:local \
|
-t python-repositories-ci:local \
|
||||||
.
|
.
|
||||||
@@ -64,7 +64,7 @@ echo "=== Logging in to ${REGISTRY} as ${REGISTRY_USER} ==="
|
|||||||
echo "$CI_RUNNER_TOKEN" | docker login "$REGISTRY" -u "$REGISTRY_USER" --password-stdin
|
echo "$CI_RUNNER_TOKEN" | docker login "$REGISTRY" -u "$REGISTRY_USER" --password-stdin
|
||||||
|
|
||||||
echo "=== Building ${IMAGE}:latest ==="
|
echo "=== Building ${IMAGE}:latest ==="
|
||||||
docker build -f docker/ci/Dockerfile \
|
docker build --network=host -f docker/ci/Dockerfile \
|
||||||
--secret "id=uv_token,src=${TOKEN_FILE}" \
|
--secret "id=uv_token,src=${TOKEN_FILE}" \
|
||||||
-t "${IMAGE}:latest" \
|
-t "${IMAGE}:latest" \
|
||||||
.
|
.
|
||||||
|
|||||||
Reference in New Issue
Block a user