From patchwork Tue Mar 14 10:53:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ales Musil X-Patchwork-Id: 1756789 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=CTnE/mbD; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PbVkf6V6Pz1yWl for ; Tue, 14 Mar 2023 21:53:46 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 305B6418C0; Tue, 14 Mar 2023 10:53:43 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 305B6418C0 Authentication-Results: smtp4.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=CTnE/mbD X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PZWyY-RrNZAR; Tue, 14 Mar 2023 10:53:41 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp4.osuosl.org (Postfix) with ESMTPS id 8118A418B1; Tue, 14 Mar 2023 10:53:39 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 8118A418B1 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 71435C0092; Tue, 14 Mar 2023 10:53:37 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 22DB4C008E for ; Tue, 14 Mar 2023 10:53:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id A8DD381E06 for ; Tue, 14 Mar 2023 10:53:35 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org A8DD381E06 Authentication-Results: smtp1.osuosl.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=CTnE/mbD X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Srq-7CpzC_8E for ; Tue, 14 Mar 2023 10:53:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 8AEF681308 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by smtp1.osuosl.org (Postfix) with ESMTPS id 8AEF681308 for ; Tue, 14 Mar 2023 10:53:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678791213; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=73zcQGiwFQRFTZHrGhJyuVd7gyx3GhYb2gaLg7riL3w=; b=CTnE/mbDYAQd3uaW1Pi9veocdwDIeMjJ94RoFM8P964Fauek6RC504c0xnP7CtawKcd0kV vvKQjnn8x5Flx9t1yH1yMODkCW35X+kuUA5rI9xVBhyxz0DLDmlI4t2rDhHQDwMJte1SLE jzGMbH926w2lVoX02snbsTdg31BZjWQ= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-387-Xi0Dsvp6MTWuziPiN-ofRQ-1; Tue, 14 Mar 2023 06:53:30 -0400 X-MC-Unique: Xi0Dsvp6MTWuziPiN-ofRQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E852D101A52E for ; Tue, 14 Mar 2023 10:53:29 +0000 (UTC) Received: from amusil.. (unknown [10.34.131.44]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3CE22140EBF4; Tue, 14 Mar 2023 10:53:29 +0000 (UTC) From: Ales Musil To: dev@openvswitch.org Date: Tue, 14 Mar 2023 11:53:24 +0100 Message-Id: <20230314105324.127218-5-amusil@redhat.com> In-Reply-To: <20230314105324.127218-1-amusil@redhat.com> References: <20230314105324.127218-1-amusil@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Cc: dceara@redhat.com Subject: [ovs-dev] [PATCH ovn 4/4] CI: Add automation for building the containers X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" In order to use the containers in CI build the containers regularly so everything is up to date. Currently, there is only Fedora container, but it can be extended as needed. Signed-off-by: Ales Musil --- The testing job is available here: https://github.com/almusil/ovn/actions/runs/4413861354/jobs/7734843263 --- .github/workflows/containers.yaml | 54 +++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/containers.yaml diff --git a/.github/workflows/containers.yaml b/.github/workflows/containers.yaml new file mode 100644 index 000000000..e4fae1c26 --- /dev/null +++ b/.github/workflows/containers.yaml @@ -0,0 +1,54 @@ +name: Containers +on: + # Be able to run the job manually when needed + workflow_dispatch: + # Build every week on Monday 00:00 + schedule: + - cron: '0 0 * * 1' + +env: + IMAGE_REGISTRY: ghcr.io + IMAGE_NAMESPACE: ovn-org + IMAGE_NAME: ovn-tests + CONTAINERS_PATH: ./utilities/containers + DEPENDENCIES: podman + +jobs: + container: + runs-on: ubuntu-latest + strategy: + matrix: + distro: [ fedora ] + steps: + - uses: actions/checkout@v3 + + - name: Update APT cache + run: sudo apt update + + - name: Install dependencies + run: sudo apt install -y ${{ env.DEPENDENCIES }} + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Build container images + id: build-image + uses: redhat-actions/buildah-build@v2 + with: + image: ${{ env.IMAGE_NAME }} + archs: amd64, arm64 + build-args: CONTAINERS_PATH=${{ env.CONTAINERS_PATH }} + dockerfiles: ${{ env.CONTAINERS_PATH }}/${{ matrix.distro }}/Dockerfile + + - name: Push to ghcr.io + id: push-to-registry + uses: redhat-actions/push-to-registry@v2 + with: + image: ${{ steps.build-image.outputs.image }} + tags: ${{ steps.build-image.outputs.tags }} + registry: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAMESPACE }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Print image url + run: echo "Image pushed to ${{ steps.push-to-registry.outputs.registry-paths }}"