Skip to content

Commit

Permalink
ci: Build latest skopeo for ubuntu
Browse files Browse the repository at this point in the history
So that we can drop support for the hacky "copy to temporary OCI"
code.
  • Loading branch information
cgwalters committed Jan 17, 2024
1 parent 0910876 commit 087abfa
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@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
Expand Down

0 comments on commit 087abfa

Please sign in to comment.