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 17484fc commit 9acb29b
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 @@ -41,7 +41,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 @@ -90,7 +90,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 @@ -99,13 +99,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 @@ -114,7 +114,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 @@ -136,7 +136,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
TAGS_TO_PUSH=$(get_tags_to_push ${{ env.RELEASE_VERSION }})
Expand All @@ -153,7 +153,7 @@ jobs:
--platform=linux/arm64,linux/amd64,linux/ppc64le hazelcast-oss
- 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
TAGS_TO_PUSH=$(get_tags_to_push ${{ env.RELEASE_VERSION }})
Expand All @@ -173,10 +173,10 @@ jobs:
runs-on: ubuntu-latest
needs: push
env:
EDITIONS: ${{ github.event.inputs.EDITIONS || 'All' }}
RELEASE_TYPE: ${{ github.event.inputs.RELEASE_TYPE || 'ALL' }}
steps:
- name: Update Docker Hub Description of OSS image
if: env.PUSH_LATEST == 'yes' && (env.EDITIONS == 'All' || env.EDITIONS == 'OSS' )
if: env.PUSH_LATEST == 'yes' && (env.RELEASE_TYPE == 'ALL' || env.RELEASE_TYPE == 'OSS' )
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
Expand All @@ -186,7 +186,7 @@ jobs:
readme-filepath: ./README.md

- name: Update Docker Hub Description of EE image
if: env.PUSH_LATEST == 'yes' && (env.EDITIONS == 'All' || env.EDITIONS == 'EE' )
if: env.PUSH_LATEST == 'yes' && (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 9acb29b

Please sign in to comment.