Skip to content

Commit b214558

Browse files
committed
refactor: collapse yaml lines, change variable name
1 parent f8d4c6a commit b214558

24 files changed

+96
-144
lines changed

.github/workflows/build_airflow.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ name: Build Airflow
33

44
env:
55
PRODUCT_NAME: airflow
6-
SDP_RELEASE_TAG: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
6+
SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
77

88
on:
99
workflow_dispatch:
1010
schedule:
1111
- cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_*
1212
push:
13-
branches:
14-
- main
15-
tags:
16-
- '*'
13+
branches: [main]
14+
tags: ['*']
1715
paths:
1816
# To check dependencies, run this ( you will need to consider transitive dependencies)
1917
# bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]'
@@ -62,7 +60,7 @@ jobs:
6260
product-name: ${{ env.PRODUCT_NAME }}
6361
product-version: ${{ matrix.versions }}
6462
build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }}
65-
sdp-version: ${{ env.SDP_RELEASE_TAG }}
63+
sdp-version: ${{ env.SDP_VERSION }}
6664

6765
- name: Publish Container Image on docker.stackable.tech
6866
uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0

.github/workflows/build_druid.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ name: Build Druid
33

44
env:
55
PRODUCT_NAME: druid
6-
SDP_RELEASE_TAG: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
6+
SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
77

88
on:
99
workflow_dispatch:
1010
schedule:
1111
- cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_*
1212
push:
13-
branches:
14-
- main
15-
tags:
16-
- '*'
13+
branches: [main]
14+
tags: ['*']
1715
paths:
1816
# To check dependencies, run this ( you will need to consider transitive dependencies)
1917
# bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]'
@@ -64,7 +62,7 @@ jobs:
6462
product-name: ${{ env.PRODUCT_NAME }}
6563
product-version: ${{ matrix.versions }}
6664
build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }}
67-
sdp-version: ${{ env.SDP_RELEASE_TAG }}
65+
sdp-version: ${{ env.SDP_VERSION }}
6866

6967
- name: Publish Container Image on docker.stackable.tech
7068
uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0

.github/workflows/build_hadoop.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ name: Build Hadoop
33

44
env:
55
PRODUCT_NAME: hadoop
6-
SDP_RELEASE_TAG: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
6+
SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
77

88
on:
99
workflow_dispatch:
1010
schedule:
1111
- cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_*
1212
push:
13-
branches:
14-
- main
15-
tags:
16-
- '*'
13+
branches: [main]
14+
tags: ['*']
1715
paths:
1816
# To check dependencies, run this ( you will need to consider transitive dependencies)
1917
# bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]'
@@ -64,7 +62,7 @@ jobs:
6462
product-name: ${{ env.PRODUCT_NAME }}
6563
product-version: ${{ matrix.versions }}
6664
build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }}
67-
sdp-version: ${{ env.SDP_RELEASE_TAG }}
65+
sdp-version: ${{ env.SDP_VERSION }}
6866

6967
- name: Publish Container Image on docker.stackable.tech
7068
uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0

.github/workflows/build_hbase.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ name: Build HBase
33

44
env:
55
PRODUCT_NAME: hbase
6-
SDP_RELEASE_TAG: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
6+
SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
77

88
on:
99
workflow_dispatch:
1010
schedule:
1111
- cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_*
1212
push:
13-
branches:
14-
- main
15-
tags:
16-
- '*'
13+
branches: [main]
14+
tags: ['*']
1715
paths:
1816
# To check dependencies, run this ( you will need to consider transitive dependencies)
1917
# bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]'
@@ -65,7 +63,7 @@ jobs:
6563
product-name: ${{ env.PRODUCT_NAME }}
6664
product-version: ${{ matrix.versions }}
6765
build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }}
68-
sdp-version: ${{ env.SDP_RELEASE_TAG }}
66+
sdp-version: ${{ env.SDP_VERSION }}
6967

7068
- name: Publish Container Image on docker.stackable.tech
7169
uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0

.github/workflows/build_hello-world.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ name: Build Hello-World
33

44
env:
55
PRODUCT_NAME: hello-world
6-
SDP_RELEASE_TAG: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
6+
SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
77

88
on:
99
workflow_dispatch:
1010
schedule:
1111
- cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_*
1212
push:
13-
branches:
14-
- main
15-
tags:
16-
- '*'
13+
branches: [main]
14+
tags: ['*']
1715
paths:
1816
# To check dependencies, run this ( you will need to consider transitive dependencies)
1917
# bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]'
@@ -60,7 +58,7 @@ jobs:
6058
product-name: ${{ env.PRODUCT_NAME }}
6159
product-version: ${{ matrix.versions }}
6260
build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }}
63-
sdp-version: ${{ env.SDP_RELEASE_TAG }}
61+
sdp-version: ${{ env.SDP_VERSION }}
6462

6563
- name: Publish Container Image on docker.stackable.tech
6664
uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0

.github/workflows/build_hive.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ name: Build Hive
33

44
env:
55
PRODUCT_NAME: hive
6-
SDP_RELEASE_TAG: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
6+
SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
77

88
on:
99
workflow_dispatch:
1010
schedule:
1111
- cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_*
1212
push:
13-
branches:
14-
- main
15-
tags:
16-
- '*'
13+
branches: [main]
14+
tags: ['*']
1715
paths:
1816
# To check dependencies, run this ( you will need to consider transitive dependencies)
1917
# bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]'
@@ -65,7 +63,7 @@ jobs:
6563
product-name: ${{ env.PRODUCT_NAME }}
6664
product-version: ${{ matrix.versions }}
6765
build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }}
68-
sdp-version: ${{ env.SDP_RELEASE_TAG }}
66+
sdp-version: ${{ env.SDP_VERSION }}
6967

7068
- name: Publish Container Image on docker.stackable.tech
7169
uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0

.github/workflows/build_java-base.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ name: Build Java Base
33

44
env:
55
PRODUCT_NAME: java-base
6-
SDP_RELEASE_TAG: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
6+
SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
77

88
on:
99
workflow_dispatch:
1010
schedule:
1111
- cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_*
1212
push:
13-
branches:
14-
- main
15-
tags:
16-
- '*'
13+
branches: [main]
14+
tags: ['*']
1715
paths:
1816
# To check dependencies, run this ( you will need to consider transitive dependencies)
1917
# bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]'
@@ -60,7 +58,7 @@ jobs:
6058
product-name: ${{ env.PRODUCT_NAME }}
6159
product-version: ${{ matrix.versions }}
6260
build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }}
63-
sdp-version: ${{ env.SDP_RELEASE_TAG }}
61+
sdp-version: ${{ env.SDP_VERSION }}
6462

6563
- name: Publish Container Image on docker.stackable.tech
6664
uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0

.github/workflows/build_java-devel.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ name: Build Java Development
33

44
env:
55
PRODUCT_NAME: java-devel
6-
SDP_RELEASE_TAG: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
6+
SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
77

88
on:
99
workflow_dispatch:
1010
schedule:
1111
- cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_*
1212
push:
13-
branches:
14-
- main
15-
tags:
16-
- '*'
13+
branches: [main]
14+
tags: ['*']
1715
paths:
1816
# To check dependencies, run this ( you will need to consider transitive dependencies)
1917
# bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]'
@@ -60,7 +58,7 @@ jobs:
6058
product-name: ${{ env.PRODUCT_NAME }}
6159
product-version: ${{ matrix.versions }}
6260
build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }}
63-
sdp-version: ${{ env.SDP_RELEASE_TAG }}
61+
sdp-version: ${{ env.SDP_VERSION }}
6462

6563
- name: Publish Container Image on docker.stackable.tech
6664
uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0

.github/workflows/build_kafka-testing-tools.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ name: Build Kafka Testing Tools
33

44
env:
55
PRODUCT_NAME: kafka-testing-tools
6-
SDP_RELEASE_TAG: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
6+
SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
77

88
on:
99
workflow_dispatch:
1010
schedule:
1111
- cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_*
1212
push:
13-
branches:
14-
- main
15-
tags:
16-
- '*'
13+
branches: [main]
14+
tags: ['*']
1715
paths:
1816
# To check dependencies, run this ( you will need to consider transitive dependencies)
1917
# bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]'
@@ -64,7 +62,7 @@ jobs:
6462
product-name: ${{ env.PRODUCT_NAME }}
6563
product-version: ${{ matrix.versions }}
6664
build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }}
67-
sdp-version: ${{ env.SDP_RELEASE_TAG }}
65+
sdp-version: ${{ env.SDP_VERSION }}
6866

6967
- name: Publish Container Image on docker.stackable.tech
7068
uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0

.github/workflows/build_kafka.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ name: Build Kafka
33

44
env:
55
PRODUCT_NAME: kafka
6-
SDP_RELEASE_TAG: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
6+
SDP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
77

88
on:
99
workflow_dispatch:
1010
schedule:
1111
- cron: '0 1 1/2 * *' # https://crontab.guru/#0_1_1/2_*_*
1212
push:
13-
branches:
14-
- main
15-
tags:
16-
- '*'
13+
branches: [main]
14+
tags: ['*']
1715
paths:
1816
# To check dependencies, run this ( you will need to consider transitive dependencies)
1917
# bake --product PRODUCT -d | grep -v 'docker buildx bake' | jq '.target | keys[]'
@@ -66,7 +64,7 @@ jobs:
6664
product-name: ${{ env.PRODUCT_NAME }}
6765
product-version: ${{ matrix.versions }}
6866
build-cache-password: ${{ secrets.BUILD_CACHE_NEXUS_PASSWORD }}
69-
sdp-version: ${{ env.SDP_RELEASE_TAG }}
67+
sdp-version: ${{ env.SDP_VERSION }}
7068

7169
- name: Publish Container Image on docker.stackable.tech
7270
uses: stackabletech/actions/publish-image@a3f7587879e9f12e04a29fd26435949aaa4fd59c # 0.2.0

0 commit comments

Comments
 (0)