Skip to content

Commit

Permalink
Pin older oras version to fix tests
Browse files Browse the repository at this point in the history
Issue: PTFE-1367
  • Loading branch information
francoisferrand committed Apr 10, 2024
1 parent f8ddb7a commit 6ea9897
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,22 @@ 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)
# Start cri-o service
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 }}"
Expand Down

0 comments on commit 6ea9897

Please sign in to comment.