Upgrade version to 5.3.2 #68
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build EE NLC tag image | |
on: | |
push: | |
branches: | |
- "!*" | |
tags: | |
- "v5.*" | |
jobs: | |
push: | |
runs-on: ubuntu-latest | |
env: | |
NLC_REPOSITORY: ${{ secrets.NLC_REPOSITORY }} | |
NLC_REPO_USERNAME: ${{ secrets.NLC_REPO_USERNAME }} | |
NLC_REPO_TOKEN: ${{ secrets.NLC_REPO_TOKEN }} | |
NLC_IMAGE_NAME: ${{ secrets.NLC_IMAGE_NAME }} | |
S3_NLC_URL: ${{ secrets.S3_NLC_URL }} | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Set Release Version | |
run: echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV | |
- name: Set NLC zip URL | |
run: | | |
S3_NLC_ZIP_URL=${S3_NLC_URL}/hazelcast-enterprise-${RELEASE_VERSION}-nlc.zip | |
echo "S3_NLC_ZIP_URL=${S3_NLC_ZIP_URL}" >> $GITHUB_ENV | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: 'us-east-1' | |
- name: Get presigned NLC URL from S3 | |
run: | | |
HAZELCAST_ZIP_URL="$(aws s3 presign ${S3_NLC_ZIP_URL} --expires-in 600)" | |
echo "HAZELCAST_ZIP_URL=${HAZELCAST_ZIP_URL}" >> $GITHUB_ENV | |
- name: Login to Docker Hub | |
run: echo "${NLC_REPO_TOKEN}" | docker login -u ${NLC_REPO_USERNAME} ${NLC_REPOSITORY} --password-stdin | |
- name: Build EE image | |
run: | | |
docker build \ | |
--build-arg HZ_VERSION=${RELEASE_VERSION} \ | |
--build-arg HAZELCAST_ZIP_URL=${HAZELCAST_ZIP_URL} \ | |
--tag ${NLC_IMAGE_NAME}:${RELEASE_VERSION} hazelcast-enterprise | |
- name: Push EE image | |
run: docker push ${NLC_IMAGE_NAME}:${RELEASE_VERSION} |