Skip to content

Commit

Permalink
Build NLC images for arm64 [5.2.z] (#650)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldziedziul committed Aug 30, 2023
1 parent cae19e8 commit 718571c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 10 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/ee-nlc-snapshot-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,27 @@ jobs:
- name: Login to Docker Hub
run: echo "${NLC_REPO_TOKEN}" | docker login -u ${NLC_REPO_USERNAME} ${NLC_REPOSITORY} --password-stdin

- name: Set up QEMU
uses: docker/setup-qemu-action@v2.2.0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.2.1
with:
version: v0.5.1

- name: Build EE image
run: |
docker build \
docker buildx build --load \
--build-arg HZ_VERSION=${HZ_VERSION} \
--build-arg HAZELCAST_ZIP_URL=${HAZELCAST_ZIP_URL} \
--label hazelcast.ee.revision=${{ github.event.inputs.HZ_EE_REVISION }} \
--tag ${NLC_IMAGE_NAME}:${HZ_VERSION} hazelcast-enterprise
--tag hazelcast-nlc:test hazelcast-enterprise
- name: Run smoke test against EE image
timeout-minutes: 2
run: |
export HZ_INSTANCETRACKING_FILENAME=instance-tracking.txt
.github/scripts/simple-smoke-test.sh ${NLC_IMAGE_NAME}:${HZ_VERSION} ${{ env.test_container_name_ee }}
.github/scripts/simple-smoke-test.sh hazelcast-nlc:test ${{ env.test_container_name_ee }}
- name: Get docker logs
if: ${{ always() }}
Expand All @@ -73,5 +81,11 @@ jobs:
path: |
${{ env.DOCKER_LOG_FILE_EE }}
- name: Push EE image
run: docker push ${NLC_IMAGE_NAME}:${HZ_VERSION}
- name: Build/Push EE image
run: |
docker buildx build --push \
--build-arg HZ_VERSION=${HZ_VERSION} \
--build-arg HAZELCAST_ZIP_URL=${HAZELCAST_ZIP_URL} \
--label hazelcast.ee.revision=${{ github.event.inputs.HZ_EE_REVISION }} \
--tag ${NLC_IMAGE_NAME}:${HZ_VERSION} \
--platform=linux/arm64,linux/amd64 hazelcast-enterprise
23 changes: 18 additions & 5 deletions .github/workflows/ee-nlc-tag-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,26 @@ jobs:
- name: Login to Docker Hub
run: echo "${NLC_REPO_TOKEN}" | docker login -u ${NLC_REPO_USERNAME} ${NLC_REPOSITORY} --password-stdin

- name: Set up QEMU
uses: docker/setup-qemu-action@v2.2.0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.2.1
with:
version: v0.5.1

- name: Build EE image
run: |
docker build \
docker buildx build --load \
--build-arg HZ_VERSION=${RELEASE_VERSION} \
--build-arg HAZELCAST_ZIP_URL=${HAZELCAST_ZIP_URL} \
--tag ${NLC_IMAGE_NAME}:${RELEASE_VERSION} hazelcast-enterprise
--tag hazelcast-nlc:test hazelcast-enterprise
- name: Run smoke test against EE image
timeout-minutes: 2
run: |
export HZ_INSTANCETRACKING_FILENAME=instance-tracking.txt
.github/scripts/simple-smoke-test.sh ${NLC_IMAGE_NAME}:${RELEASE_VERSION} ${{ env.test_container_name_ee }}
.github/scripts/simple-smoke-test.sh hazelcast-nlc:test ${{ env.test_container_name_ee }}
- name: Get docker logs
if: ${{ always() }}
Expand All @@ -75,5 +83,10 @@ jobs:
path: |
${{ env.DOCKER_LOG_FILE_EE }}
- name: Push EE image
run: docker push ${NLC_IMAGE_NAME}:${RELEASE_VERSION}
- name: Build/Push EE image
run: |
docker buildx build --push \
--build-arg HZ_VERSION=${RELEASE_VERSION} \
--build-arg HAZELCAST_ZIP_URL=${HAZELCAST_ZIP_URL} \
--tag ${NLC_IMAGE_NAME}:${RELEASE_VERSION} \
--platform=linux/arm64,linux/amd64 hazelcast-enterprise

0 comments on commit 718571c

Please sign in to comment.