mirror: in CI, do not run apt-get update on the host

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
This commit is contained in:
Olivier Gayot 2023-02-23 18:12:24 +01:00
parent e90e2b4e6a
commit 75f6047a6f
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,7 @@
apt_mirrors_known:
- url: http://mymirror.local/repository/Apt/ubuntu/
strategy: failure
- pattern: 'https?://[a-z]{2,}\.archive\.ubuntu\.com/ubuntu/?'
strategy: success
- url: http://archive.ubuntu.com/ubuntu
strategy: failure

View File

@ -215,6 +215,7 @@ LANG=C.UTF-8 timeout --foreground 60 \
--machine-config examples/existing-partitions.json \
--bootloader bios \
--autoinstall examples/autoinstall.yaml \
--dry-run-config examples/dr-config-apt-local-mirror.yaml \
--kernel-cmdline autoinstall \
--source-catalog examples/install-sources.yaml
validate