From 5ac45c967ef49330265e5669c527871a7c3e9642 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 17 Jan 2024 10:15:14 -0500 Subject: [PATCH] ci: Build latest skopeo for ubuntu So that we can drop support for the hacky "copy to temporary OCI" code. --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 47aaa00ea..f0f29e8de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -116,22 +116,42 @@ jobs: run: sudo tar -C / -xvf bootc.tar.zst - name: Integration tests run: bootc internal-tests run-container-integration + build-skopeo-ubuntu: + name: "Build skopeo git main for ubuntu" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + repository: containers/skopeo + path: skopeo + - name: Install build deps + run: | + sudo sed -ie s,'# deb-src,deb-src,' /etc/apt/sources.list + sudo apt update + sudo apt build-dep -y skopeo + - name: Build skopeo + run: cd skopeo && make bin/skopeo PREFIX=/usr + - name: Upload binary + uses: actions/upload-artifact@v3 + with: + name: skopeo-ubuntu + path: skopeo/bin/skopeo privtest-alongside: name: "Test install-alongside" - needs: build-fedora + needs: [build-fedora, build-skopeo-ubuntu] runs-on: ubuntu-latest steps: + - name: Download + uses: actions/download-artifact@v3 + with: + name: skopeo-ubuntu + - run: sudo mv skopeo-ubuntu /usr/bin - name: Download uses: actions/download-artifact@v3 with: name: bootc.tar.zst - name: Install run: tar -xvf bootc.tar.zst - - name: Update host skopeo - run: | - echo 'deb http://cz.archive.ubuntu.com/ubuntu lunar main universe' | sudo tee -a /etc/apt/sources.list - sudo apt update - sudo apt upgrade skopeo - name: Integration tests run: | set -xeuo pipefail