Skip to content

Commit

Permalink
Add manual trigger for rebuilding NLC images [5.2.z] (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldziedziul committed Aug 30, 2023
1 parent 718571c commit d5b8166
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/ee-nlc-tag-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
- "!*"
tags:
- "v5.*"
workflow_dispatch:
inputs:
HZ_VERSION:
description: 'Version of Hazelcast to build the image for, e.g. 5.3.2, 5.1.1, 5.0.1'
required: true

env:
test_container_name_ee: hazelcast-ee-test
Expand All @@ -19,16 +24,23 @@ jobs:
NLC_REPO_TOKEN: ${{ secrets.NLC_REPO_TOKEN }}
NLC_IMAGE_NAME: ${{ secrets.NLC_IMAGE_NAME }}
S3_NLC_URL: ${{ secrets.S3_NLC_URL }}
HZ_VERSION: ${{ github.event.inputs.HZ_VERSION }}
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Set Release Version
run: echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV
- name: Set HZ version
run: |
if [ -z "${{ env.HZ_VERSION }}" ]; then
HZ_VERSION=${GITHUB_REF:11}
else
HZ_VERSION=${{ env.HZ_VERSION }}
fi
echo "HZ_VERSION=${HZ_VERSION}" >> $GITHUB_ENV
- name: Set NLC zip URL
run: |
S3_NLC_ZIP_URL=${S3_NLC_URL}/hazelcast-enterprise-${RELEASE_VERSION}-nlc.zip
S3_NLC_ZIP_URL=${S3_NLC_URL}/hazelcast-enterprise-${HZ_VERSION}-nlc.zip
echo "S3_NLC_ZIP_URL=${S3_NLC_ZIP_URL}" >> $GITHUB_ENV
Expand Down Expand Up @@ -58,7 +70,7 @@ jobs:
- name: Build EE image
run: |
docker buildx build --load \
--build-arg HZ_VERSION=${RELEASE_VERSION} \
--build-arg HZ_VERSION=${HZ_VERSION} \
--build-arg HAZELCAST_ZIP_URL=${HAZELCAST_ZIP_URL} \
--tag hazelcast-nlc:test hazelcast-enterprise
Expand Down Expand Up @@ -86,7 +98,7 @@ jobs:
- name: Build/Push EE image
run: |
docker buildx build --push \
--build-arg HZ_VERSION=${RELEASE_VERSION} \
--build-arg HZ_VERSION=${HZ_VERSION} \
--build-arg HAZELCAST_ZIP_URL=${HAZELCAST_ZIP_URL} \
--tag ${NLC_IMAGE_NAME}:${RELEASE_VERSION} \
--tag ${NLC_IMAGE_NAME}:${HZ_VERSION} \
--platform=linux/arm64,linux/amd64 hazelcast-enterprise

0 comments on commit d5b8166

Please sign in to comment.