Skip to content

Commit

Permalink
install oras in ci workflows
Browse files Browse the repository at this point in the history
oras was removed from from Ubuntu 24.04 GitHub runner images

Issue: BB-496
  • Loading branch information
Kerkesni committed Jan 14, 2025
1 parent db7b874 commit 67881fa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ github.token }}

- name: Install Oras
run: |
curl -L https://github.com/oras-project/oras/releases/download/v${ORAS_VERSION}/oras_${ORAS_VERSION}_linux_amd64.tar.gz | \
tar -xz -C /usr/local/bin oras
env:
ORAS_VERSION: 1.2.2

- name: Build and push
uses: docker/build-push-action@v5
with:
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# TODO: remove the following step once Oras CLI 0.13.0 bug https://github.com/oras-project/oras/issues/447 is fixed.
- name: Downgrade Oras to 0.12.0
- name: Install Oras
run: |
curl -LO https://github.com/oras-project/oras/releases/download/v0.12.0/oras_0.12.0_linux_amd64.tar.gz
mkdir -p oras-install/
tar -zxf oras_0.12.0_*.tar.gz -C oras-install/
mv oras-install/oras /usr/local/bin/
rm -rf oras_0.12.0_*.tar.gz oras-install/
curl -L https://github.com/oras-project/oras/releases/download/v${ORAS_VERSION}/oras_${ORAS_VERSION}_linux_amd64.tar.gz | \
tar -xz -C /usr/local/bin oras
env:
ORAS_VERSION: 1.2.2

- name: Set up Docker Buildk
uses: docker/setup-buildx-action@v3
Expand Down

0 comments on commit 67881fa

Please sign in to comment.