-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(podman): workaround for podman v4
- Loading branch information
Thuan Vo
committed
Aug 24, 2023
1 parent
2a56af2
commit 6c7e324
Showing
1 changed file
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,7 @@ jobs: | |
- name: Run controller tests | ||
run: make test-envtest | ||
scorecard-test: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-latest # 22.04 | ||
if: ${{ github.repository_owner == 'cryostatio' }} | ||
steps: | ||
- name: Fail if safe-to-test label NOT applied | ||
|
@@ -74,6 +74,16 @@ jobs: | |
- uses: jpkrohling/[email protected] | ||
with: | ||
operator-sdk-version: v1.28.0 | ||
- name: Install podman v4 | ||
run: | | ||
ubuntu_version='22.04' | ||
key_url="https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${ubuntu_version}/Release.key" | ||
sources_url="https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${ubuntu_version}" | ||
echo "deb $sources_url/ /" | tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list | ||
curl -fsSL $key_url | gpg --dearmor | tee /etc/apt/trusted.gpg.d/devel_kubic_libcontainers_unstable.gpg > /dev/null | ||
apt update | ||
apt install podman | ||
- name: Build scorecard image for test | ||
id: build-scorecard | ||
run: | | ||
|
@@ -154,6 +164,16 @@ jobs: | |
if: ${{ github.event_name == 'push' && github.repository_owner == 'cryostatio' }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install podman v4 | ||
run: | | ||
ubuntu_version='22.04' | ||
key_url="https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${ubuntu_version}/Release.key" | ||
sources_url="https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${ubuntu_version}" | ||
echo "deb $sources_url/ /" | tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list | ||
curl -fsSL $key_url | gpg --dearmor | tee /etc/apt/trusted.gpg.d/devel_kubic_libcontainers_unstable.gpg > /dev/null | ||
apt update | ||
apt install podman | ||
- name: Build operator image | ||
run: | | ||
IMAGE_NAMESPACE=${{ env.CI_REGISTRY }} SKIP_TESTS=true PLATFORMS=${{ env.CI_PLATFORMS }} MANIFEST_PUSH=false make oci-buildx | ||
|
@@ -215,6 +235,16 @@ jobs: | |
if: ${{ github.event_name == 'push' && github.repository_owner == 'cryostatio' }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install podman v4 | ||
run: | | ||
ubuntu_version='22.04' | ||
key_url="https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${ubuntu_version}/Release.key" | ||
sources_url="https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${ubuntu_version}" | ||
echo "deb $sources_url/ /" | tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list | ||
curl -fsSL $key_url | gpg --dearmor | tee /etc/apt/trusted.gpg.d/devel_kubic_libcontainers_unstable.gpg > /dev/null | ||
apt update | ||
apt install podman | ||
- name: Get scorecard image tag | ||
id: get-image-tag | ||
run: | | ||
|