Skip to content

Commit

Permalink
Merge branch 'master' into PROJQUAY-8092b
Browse files Browse the repository at this point in the history
  • Loading branch information
deshpandevlab authored Oct 22, 2024
2 parents 5a427f4 + cd60da9 commit e392a0f
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,30 @@ jobs:
with:
ref: ${{ github.event.inputs.branch || github.ref_name }}

- name: Check for wget
run: |
if command -v wget &> /dev/null; then
echo "wget is installed."
else
echo "wget is not installed. Installing wget..."
sudo apt-get update
sudo apt-get install -y wget
fi
- name: Install opm from OpenShift Mirror
uses: redhat-actions/openshift-tools-installer@v1
with:
opm: "latest"

run: |
LATEST_VERSION=$(curl -s https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/ | grep -oP 'opm-linux-\K[0-9.]+(?=\.tar\.gz)' | head -1)
echo "Latest version of opm: $LATEST_VERSION"
wget https://mirror.openshift.com/pub/openshift-v4/clients/ocp/${LATEST_VERSION}/opm-linux-${LATEST_VERSION}.tar.gz
tar -xzf opm-linux-${LATEST_VERSION}.tar.gz
# Check if the executable is named opm-rhel8 and rename it if necessary
if [ -f opm-rhel8 ]; then
mv opm-rhel8 /usr/local/bin/opm
fi
mv /usr/local/bin/opm /usr/local/bin/opm || true
chmod +x /usr/local/bin/opm
- name: Install skopeo
run: |
sudo apt-get -y install skopeo
Expand Down

0 comments on commit e392a0f

Please sign in to comment.