Compare commits

..
1 Commits
Author SHA1 Message Date
Defame1297 0eade70b56 test(tailscale): let apt reuse downloaded packages in the default scenario
Build / build (pull_request) Successful in 23s
Lint / lint (pull_request) Successful in 2m17s
Molecule / molecule (pull_request) Successful in 6m14s
The Ubuntu base image's /etc/apt/apt.conf.d/docker-clean deletes every
downloaded .deb after an install, so verify's downgrade, update and
reinstalls fetched tailscale from pkgs.tailscale.com again each time. A
prepare playbook removes it; the install from the real repository stays,
and apt still checks a cached .deb against the repository's hashes.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 14:10:53 +00:00
5 changed files with 15 additions and 4 deletions

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ jobs:
timeout-minutes: 30
# The ci image (images/ci, built by image.yml): tag for the release, digest enforced.
container:
image: git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
image: git.rkdr.net/mortis/ci:0.2.46@sha256:a03015cc2177bdd6ef7f348f245a89f361893c7c64edc1264d9f9c1387d9defc
env:
PIP_DISABLE_PIP_VERSION_CHECK: "1"
steps:
+1 -1
View File
@@ -44,7 +44,7 @@ jobs:
# The ci image (images/ci, built by image.yml), at the pin of lint.yml: tag for the
# release, digest enforced. Only its /opt/venv Python (with PyYAML) is used here.
container:
image: git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
image: git.rkdr.net/mortis/ci:0.2.46@sha256:a03015cc2177bdd6ef7f348f245a89f361893c7c64edc1264d9f9c1387d9defc
steps:
# The container has no Node, so JavaScript actions such as actions/checkout
# cannot run; clone with git and the job token.
+1 -1
View File
@@ -31,7 +31,7 @@ jobs:
# The tag says which release, the digest is what is enforced (bump both together
# when image.yml publishes a new version).
container:
image: git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
image: git.rkdr.net/mortis/ci:0.2.46@sha256:a03015cc2177bdd6ef7f348f245a89f361893c7c64edc1264d9f9c1387d9defc
env:
PIP_DISABLE_PIP_VERSION_CHECK: "1"
PRE_COMMIT_HOME: /opt/pre-commit
+1 -1
View File
@@ -53,7 +53,7 @@ jobs:
env:
# The tools and collections molecule runs with: the image Lint and Build use.
CI_IMAGE: >-
git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
git.rkdr.net/mortis/ci:0.2.46@sha256:a03015cc2177bdd6ef7f348f245a89f361893c7c64edc1264d9f9c1387d9defc
# Used by the scenarios as `image: ${MOLECULE_IMAGE}`; set it the same way to run
# one locally.
MOLECULE_IMAGE: >-
@@ -0,0 +1,11 @@
---
# The base image's docker-clean deletes each downloaded .deb after an install, so verify's update and
# reinstalls would fetch tailscale again; without it apt reuses the cached .deb after checking its hash.
- name: Prepare
hosts: all
gather_facts: false
tasks:
- name: Keep downloaded packages in the apt cache
ansible.builtin.file:
path: /etc/apt/apt.conf.d/docker-clean
state: absent