diff --git a/.github/workflows/actions.yaml b/.github/workflows/actions.yaml index 31ee256..baa3c19 100644 --- a/.github/workflows/actions.yaml +++ b/.github/workflows/actions.yaml @@ -68,7 +68,7 @@ jobs: # Fix libpcre2-posix2 package version, use the sudo apt-get -y install --reinstall --allow-downgrades libpcre2-posix2/$(lsb_release -cs) - # Also need oras, skopeo ; but they are already installed + # Also need skopeo ; but it is already installed bash <(curl -s https://raw.githubusercontent.com/pgrange/bash_unit/master/install.sh) @@ -76,6 +76,14 @@ jobs: sudo systemctl start crio # TODO: cache the installed image? + - name: Downgrade Oras to 0.12.0 + run: | + curl -LO https://github.com/oras-project/oras/releases/download/v${ORAS_VERSION}/oras_${ORAS_VERSION}_linux_amd64.tar.gz + tar -zxf oras_${ORAS_VERSION}_*.tar.gz -C /usr/local/bin/ + rm -rf oras_${ORAS_VERSION}_*.tar.gz + env: + ORAS_VERSION: 0.12.0 + - name: Unit testing with bash_unit run: | export IMAGE="${{ env.DOCKER_IMAGE }}:${{ github.sha }}"