From 921da2d9acab3047b039c10cf2e15adb2175f8b4 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. Signed-off-by: Colin Walters --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 47aaa00ea..84b48634d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -116,22 +116,45 @@ 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 + - uses: actions/setup-go@v4 + with: + go-version: '>=1.20' + - name: Build skopeo + run: cd skopeo && make bin/skopeo PREFIX=/usr + - name: Upload binary + uses: actions/upload-artifact@v4 + 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@v4 + with: + name: skopeo-ubuntu + - run: chmod a+x skopeo && sudo mv skopeo /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