Skip to content

Commit

Permalink
Build skopeo in ci instead of docker
Browse files Browse the repository at this point in the history
  • Loading branch information
YJDoc2 committed Aug 4, 2023
1 parent 3ad01bd commit 816dc53
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/podman_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,17 @@ jobs:
uses: taiki-e/install-action@just
- name: Install requirements
run: sudo env PATH=$PATH just ci-prepare
- name: Build latest skopeo # because ubuntu 22.04 does not have latest, and podman tests depend on that
run: sudo docker build -f ./hack/skopeo.Dockerfile . --target skopeo-rootfs --output=/ && skopeo --version
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Download skopeo 1.13.1 source # because ubuntu 22.04 does not have latest, and podman tests depend on that
run: mkdir /tmp/skopeo && curl -fsSL "https://github.com/containers/skopeo/archive/v1.13.1.tar.gz" | tar -xzf - -C /tmp/skopeo --strip-components=1
- name: Build skopeo
run: cd /tmp/skopeo && CGO_ENABLED=0 DISABLE_DOCS=1 make BUILDTAGS=containers_image_openpgp GO_DYN_FLAGS=
- name: copy skopeo binaries
run: sudo cp /tmp/skopeo/bin/skopeo /usr/local/bin/skopeo && sudo cp /tmp/skopeo/default-policy.json /etc/containers/policy.json
- name: Skopeo version
run: skopeo --version
- run: just youki-dev
- run: sudo cp youki /usr/local/bin
- name: Install requirements for Podman
Expand All @@ -24,9 +33,6 @@ jobs:
uses: actions/checkout@v3
with:
repository: containers/podman
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Build podman
run: make binaries
- name: Install tools
Expand Down

0 comments on commit 816dc53

Please sign in to comment.