Skip to content

Update registry.access.redhat.com/ubi9/python-39 Docker tag to v1-153.1699551718 #87

Update registry.access.redhat.com/ubi9/python-39 Docker tag to v1-153.1699551718

Update registry.access.redhat.com/ubi9/python-39 Docker tag to v1-153.1699551718 #87

name: Test redhat-csp-download
on:
push:
paths:
- .github/workflows/redhat-csp-download.yaml
- redhat-csp-download/**
pull_request:
paths:
- .github/workflows/redhat-csp-download.yaml
- redhat-csp-download/**
schedule:
- cron: "0 0 1 * *"
jobs:
redhat-csp-download:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Switch the action to use the Dockerfile_build
run: |
mv redhat-csp-download/Dockerfile redhat-csp-download/Dockerfile_runnable
mv redhat-csp-download/Dockerfile_build redhat-csp-download/Dockerfile
- name: redhat-csp-download
uses: ./redhat-csp-download
with:
rh_username: ${{ secrets.RH_USERNAME }}
rh_password: ${{ secrets.RH_PASSWORD }}
download: '[{"file":"/github/workspace/eap-connectors.zip","url":"https://access.redhat.com/jbossnetwork/restricted/softwareDownload.html?softwareId=37193"}]'
- name: Check downloaded file exists
run: |
if [ -z "${{ secrets.RH_USERNAME }}" ] || [ -z "${{ secrets.RH_PASSWORD }}" ]
then
echo "RH_USERNAME or RH_PASSWORD is empty. Skipping."
exit 0
fi
FILE="eap-connectors.zip"
if [ -f "$FILE" ]; then
echo "$FILE exists."
else
echo "$FILE does not exist."
exit 1
fi