Skip to content

Commit

Permalink
Rename EDITIONS to RELEASE_TYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
ldziedziul committed May 26, 2024
1 parent f153cf3 commit aea974c
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/tag_image_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ on:
RELEASE_VERSION:
description: 'Version of the docker image e.g. 5.1.1, 5.1.1-1, defaults to HZ_VERSION'
required: false
EDITIONS:
RELEASE_TYPE:
description: 'Editions to build'
required: true
default: 'All'
default: 'ALL'
type: choice
options:
- All
- ALL
- OSS
- EE
env:
Expand All @@ -47,7 +47,7 @@ jobs:
DOCKER_ORG: hazelcast
HZ_VERSION: ${{ github.event.inputs.HZ_VERSION }}
RELEASE_VERSION: ${{ github.event.inputs.RELEASE_VERSION }}
EDITIONS: ${{ github.event.inputs.EDITIONS || 'All' }}
RELEASE_TYPE: ${{ github.event.inputs.RELEASE_TYPE || 'ALL' }}
steps:
- name: Set HZ version as environment variable
run: |
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin

- name: Build Test OSS image
if: env.EDITIONS == 'All' || env.EDITIONS == 'OSS'
if: env.RELEASE_TYPE == 'ALL' || env.RELEASE_TYPE == 'OSS'
run: |
docker buildx build --load \
--build-arg HZ_VERSION=${{ env.HZ_VERSION }} \
Expand All @@ -96,13 +96,13 @@ jobs:
hazelcast-oss
- name: Run smoke test against OSS image
if: env.EDITIONS == 'All' || env.EDITIONS == 'OSS'
if: env.RELEASE_TYPE == 'ALL' || env.RELEASE_TYPE == 'OSS'
timeout-minutes: 2
run: |
.github/scripts/simple-smoke-test.sh hazelcast-oss:test ${{ env.test_container_name_oss }}
- name: Build Test EE image
if: env.EDITIONS == 'All' || env.EDITIONS == 'EE'
if: env.RELEASE_TYPE == 'ALL' || env.RELEASE_TYPE == 'EE'
run: |
docker buildx build --load \
--build-arg HZ_VERSION=${{ env.HZ_VERSION }} \
Expand All @@ -112,7 +112,7 @@ jobs:
hazelcast-enterprise
- name: Run smoke test against EE image
if: env.EDITIONS == 'All' || env.EDITIONS == 'EE'
if: env.RELEASE_TYPE == 'ALL' || env.RELEASE_TYPE == 'EE'
timeout-minutes: 2
run: |
export HZ_LICENSEKEY=${{ secrets.HZ_ENTERPRISE_LICENSE }}
Expand All @@ -134,7 +134,7 @@ jobs:
${{ env.DOCKER_LOG_FILE_EE }}
- name: Build and Push OSS image
if: env.EDITIONS == 'All' || env.EDITIONS == 'OSS'
if: env.RELEASE_TYPE == 'ALL' || env.RELEASE_TYPE == 'OSS'
run: |
. .github/scripts/get-tags-to-push.sh
. .github/scripts/docker.functions.sh
Expand All @@ -160,7 +160,7 @@ jobs:
--platform=${PLATFORMS} $DOCKER_DIR
- name: Build/Push EE image
if: env.EDITIONS == 'All' || env.EDITIONS == 'EE'
if: env.RELEASE_TYPE == 'ALL' || env.RELEASE_TYPE == 'EE'
run: |
. .github/scripts/get-tags-to-push.sh
. .github/scripts/docker.functions.sh
Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:
runs-on: ubuntu-latest
needs: push
env:
EDITIONS: ${{ github.event.inputs.EDITIONS || 'All' }}
RELEASE_TYPE: ${{ github.event.inputs.RELEASE_TYPE || 'ALL' }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -204,7 +204,7 @@ jobs:
run: |
.github/scripts/generate-docker-hub-description.sh
- name: Update Docker Hub Description of OSS image
if: env.EDITIONS == 'All' || env.EDITIONS == 'OSS'
if: env.RELEASE_TYPE == 'ALL' || env.RELEASE_TYPE == 'OSS'
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
Expand All @@ -214,7 +214,7 @@ jobs:
readme-filepath: ./README-docker.md

- name: Update Docker Hub Description of EE image
if: env.EDITIONS == 'All' || env.EDITIONS == 'EE'
if: env.RELEASE_TYPE == 'ALL' || env.RELEASE_TYPE == 'EE'
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
Expand Down

0 comments on commit aea974c

Please sign in to comment.