From nobody Fri Dec 19 04:35:17 2025 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 8.43.85.245 is neither permitted nor denied by domain of lists.libvirt.org) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1705675008518463.6290294376174; Fri, 19 Jan 2024 06:36:48 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 771D81CC6; Fri, 19 Jan 2024 09:36:47 -0500 (EST) Received: from lists.libvirt.org.85.43.8.in-addr.arpa (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 6C39F1BBE; Fri, 19 Jan 2024 09:33:57 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 32AC11AD2; Fri, 19 Jan 2024 09:33:49 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id A609F1AC4 for ; Fri, 19 Jan 2024 09:33:48 -0500 (EST) Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-660-eibKnc8fMwKTOlPBUZcP2A-1; Fri, 19 Jan 2024 09:33:47 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A316E3C29A83 for ; Fri, 19 Jan 2024 14:33:46 +0000 (UTC) Received: from speedmetal.lan (unknown [10.45.242.25]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1AF37200A2F4 for ; Fri, 19 Jan 2024 14:33:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.4 X-MC-Unique: eibKnc8fMwKTOlPBUZcP2A-1 From: Peter Krempa To: devel@lists.libvirt.org Subject: [PATCH v2 1/3] gitlab-ci: Configure website build to be published via gitlab pages Date: Fri, 19 Jan 2024 15:33:42 +0100 Message-ID: <668f20d7302450668adf01d6e6957bf53d30d5d0.1705674493.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: 2FN7HTFCA5PT4GYOQJCCC477O5KQVJ6W X-Message-ID-Hash: 2FN7HTFCA5PT4GYOQJCCC477O5KQVJ6W X-MailFrom: pkrempa@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1705675009505100001 On pushes to master publish the webpage (built in the 'website_job' job) via gitlab pages. The 'pages' job uses the default image that gitlab assumes as it's consuming artifacts from an existing job and naming them properly. Signed-off-by: Peter Krempa Reviewed-by: Daniel P. Berrang=C3=A9 --- .gitlab-ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 81433652ae..b0e2724706 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,7 @@ stages: - builds - integration_tests - sanity_checks + - pages .script_variables: &script_variables | export CCACHE_BASEDIR=3D"$(pwd)" @@ -85,6 +86,23 @@ website_job: NAME: almalinux-8 TARGET_BASE_IMAGE: docker.io/library/almalinux:8 +# On push to master publish the website from 'website_job' via gitlab pages +pages: + stage: pages + script: + - mv website public + dependencies: + - website_job + rules: + - if: '$CI_PROJECT_NAMESPACE =3D=3D $RUN_UPSTREAM_NAMESPACE && $CI_PIP= ELINE_SOURCE =3D=3D "push" && $CI_COMMIT_BRANCH =3D=3D $CI_DEFAULT_BRANCH' + when: on_success + - when: never + artifacts: + expose_as: 'pages' + name: 'pages' + paths: + - public + .codestyle_job: stage: sanity_checks needs: --=20 2.43.0 _______________________________________________ Devel mailing list -- devel@lists.libvirt.org To unsubscribe send an email to devel-leave@lists.libvirt.org