Skip to content

Commit

Permalink
Merge branch 'master' into better-rhel-publish-failure-logging
Browse files Browse the repository at this point in the history
  • Loading branch information
JackPGreen authored Jan 13, 2025
2 parents e70ab37 + 5f0e4ae commit 2128cfd
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 29 deletions.
27 changes: 10 additions & 17 deletions .github/scripts/smoke-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,16 @@
set -e -o pipefail ${RUNNER_DEBUG:+-x}

# Fill the variables before running the script
WORKDIR=$1
PROJECT=$2
OCP_LOGIN_USERNAME=$3
OCP_LOGIN_PASSWORD=$4
OCP_CLUSTER_URL=$5
SCAN_REGISTRY_USER=$6
SCAN_REGISTRY_PASSWORD=$7
SCAN_REPOSITORY=$8
RELEASE_VERSION=$9
HAZELCAST_CLUSTER_SIZE=${10}
HZ_ENTERPRISE_LICENSE=${11}
HZ_MC_VERSION=${12}
SCAN_REGISTRY=${13}
LOGIN_COMMAND="oc login ${OCP_CLUSTER_URL} -u=${OCP_LOGIN_USERNAME} -p=${OCP_LOGIN_PASSWORD} --insecure-skip-tls-verify"

# LOG INTO OpenShift
eval "${LOGIN_COMMAND}"
WORKDIR=${1}
PROJECT=${2}
SCAN_REGISTRY_USER=${3}
SCAN_REGISTRY_PASSWORD=${4}
SCAN_REPOSITORY=${5}
RELEASE_VERSION=${6}
HAZELCAST_CLUSTER_SIZE=${7}
HZ_ENTERPRISE_LICENSE=${8}
HZ_MC_VERSION=${9}
SCAN_REGISTRY=${10}

# CREATE PROJECT
oc new-project $PROJECT
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/tag_image_push_rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,12 @@ jobs:
${TAGS_ARG} \
--platform=${PLATFORMS} $DOCKER_DIR
- name: Install preflight tool
run: |
PREFLIGHT_VERSION=$(curl -s https://api.github.com/repos/redhat-openshift-ecosystem/openshift-preflight/releases/latest | grep 'tag_name' | cut -d\" -f4)
wget https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/${PREFLIGHT_VERSION}/preflight-linux-amd64
chmod +x preflight-linux-amd64
- uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "latest"
preflight: "latest"
source: github
skip_cache: true

- name: Run preflight scan
run: |
Expand All @@ -175,15 +176,20 @@ jobs:
run: |
echo "HZ_MC_VERSION=$(echo "${{ inputs.HZ_VERSION }}" | cut -d '.' -f 1,2)" >> $GITHUB_ENV
- uses: redhat-actions/oc-login@v1
with:
openshift_server_url: ${{ env.OCP_CLUSTER_URL }}
openshift_username: ${{ env.OCP_LOGIN_USERNAME }}
openshift_password: ${{ env.OCP_LOGIN_PASSWORD }}
insecure_skip_tls_verify: true


- name: Deploy Hazelcast Cluster
run: |
WORKDIR=$(pwd)/.github/scripts
.github/scripts/smoke-test.sh \
"$WORKDIR" \
"$PROJECT_NAME" \
"$OCP_LOGIN_USERNAME" \
"$OCP_LOGIN_PASSWORD" \
"$OCP_CLUSTER_URL" \
"$SCAN_REGISTRY_USER" \
"$SCAN_REGISTRY_PASSWORD" \
"$SCAN_REPOSITORY" \
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/vulnerability_scan_subworkflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ jobs:

- name: Scan ${{ matrix.image.label }} image by Dockle
if: always()
# Use our fork until https://github.com/goodwithtech/dockle-action/issues/7 is fixed
# uses: goodwithtech/dockle-action@main
uses: hazelcast/dockle-action/@Upgrade-Dockle-to-`0.4.14`
# https://github.com/goodwithtech/dockle-action/releases/tag/v0.4.15
uses: goodwithtech/dockle-action@e30e6af832aad6ea7dca2a248d31a85eab6dbd68
with:
image: ${{ env.IMAGE_TAG }}
format: 'list'
Expand Down
2 changes: 1 addition & 1 deletion hazelcast-enterprise/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM redhat/ubi9-minimal:9.4
FROM redhat/ubi9-minimal:9.5

# Used for image metadata only
# Describes the version of the Dockerfile, *not* the version of the bundled Hazelcast binary as this is/can be controlled externally
Expand Down

0 comments on commit 2128cfd

Please sign in to comment.