-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build NLC images for arm64 [4.2.z] (#653)
- Loading branch information
1 parent
df614bc
commit edcdf99
Showing
2 changed files
with
39 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,10 +24,10 @@ jobs: | |
S3_NLC_URL: ${{ secrets.S3_NLC_URL }} | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
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 }} | ||
|
@@ -46,18 +46,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/[email protected] | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
with: | ||
version: v0.5.1 | ||
|
||
- name: Build EE image | ||
run: | | ||
docker build \ | ||
docker buildx build --load \ | ||
--build-arg HZ_VERSION=${HZ_VERSION} \ | ||
--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() }} | ||
|
@@ -74,5 +82,10 @@ 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} \ | ||
--label hazelcast.ee.revision=${{ github.event.inputs.HZ_EE_REVISION }} \ | ||
--tag ${NLC_IMAGE_NAME}:${HZ_VERSION} \ | ||
--platform=linux/arm64,linux/amd64 hazelcast-enterprise |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
S3_NLC_URL: ${{ secrets.S3_NLC_URL }} | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set Release Version | ||
run: echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV | ||
|
@@ -35,7 +35,7 @@ jobs: | |
echo "S3_NLC_ZIP_URL=${S3_NLC_ZIP_URL}" >> $GITHUB_ENV | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
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 }} | ||
|
@@ -51,17 +51,25 @@ 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/[email protected] | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
with: | ||
version: v0.5.1 | ||
|
||
- name: Build EE image | ||
run: | | ||
docker build \ | ||
docker buildx build --load \ | ||
--build-arg HZ_VERSION=${RELEASE_VERSION} \ | ||
--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() }} | ||
|
@@ -78,5 +86,9 @@ 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} \ | ||
--tag ${NLC_IMAGE_NAME}:${RELEASE_VERSION} \ | ||
--platform=linux/arm64,linux/amd64 hazelcast-enterprise |