[gnome-autoar/wip/oholy/ci-meson] ci: Allow network access in the container
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-autoar/wip/oholy/ci-meson] ci: Allow network access in the container
- Date: Wed, 4 Aug 2021 14:05:23 +0000 (UTC)
commit 98e3fc8f3627c7f8b126a97d25c8cbf00cbf867e
Author: Ondrej Holy <oholy redhat com>
Date: Wed Aug 4 15:59:33 2021 +0200
ci: Allow network access in the container
The `buildah bud` fails when creating image currently with the `Couldn't
resolve host name for` errors from `dnf`. Let's add `--network=host` to
allow network access in the container.
.gitlab-ci.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7b8504d..6a4f5d8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,7 +20,7 @@ update image:
script:
- dnf install -y buildah runc
- sed -i '/^mountopt =.*/d' /etc/containers/storage.conf
- - buildah bud --tag $CI_REGISTRY_IMAGE -f .gitlab/Dockerfile
+ - buildah bud --network=host --tag $CI_REGISTRY_IMAGE -f .gitlab/Dockerfile
- buildah tag $CI_REGISTRY_IMAGE "$CI_REGISTRY_IMAGE:v$CI_JOB_ID"
- buildah login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- buildah push --creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD $CI_REGISTRY_IMAGE
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]