Skip to content

Commit 067e1dc

Browse files
committed
ci: Add publish toggle
1 parent c2a6f72 commit 067e1dc

26 files changed

Lines changed: 183 additions & 2 deletions

.github/workflows/build_airflow.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ run-name: |
55
66
on:
77
workflow_dispatch:
8+
inputs:
9+
publish:
10+
description: Publish and sign images
11+
required: true
12+
default: "true"
813
schedule:
914
- cron: 0 0 1/2 * * # https://crontab.guru/#0_0_1/2_*_*
1015
push:
@@ -39,3 +44,5 @@ jobs:
3944
product-name: airflow
4045
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4146
registry-namespace: sdp
47+
# Default to true if not set/empty (if not triggered by workflow_dispatch)
48+
publish: ${{ inputs.publish == '' || inputs.publish == 'true' }}

.github/workflows/build_druid.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ run-name: |
55
66
on:
77
workflow_dispatch:
8+
inputs:
9+
publish:
10+
description: Publish and sign images
11+
required: true
12+
default: "true"
813
schedule:
914
- cron: 0 1 1/2 * * # https://crontab.guru/#0_1_1/2_*_*
1015
push:
@@ -41,3 +46,5 @@ jobs:
4146
product-name: druid
4247
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4348
registry-namespace: sdp
49+
# Default to true if not set/empty (if not triggered by workflow_dispatch)
50+
publish: ${{ inputs.publish == '' || inputs.publish == 'true' }}

.github/workflows/build_hadoop.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ run-name: |
55
66
on:
77
workflow_dispatch:
8+
inputs:
9+
publish:
10+
description: Publish and sign images
11+
required: true
12+
default: "true"
813
schedule:
914
- cron: 0 2 1/2 * * # https://crontab.guru/#0_2_1/2_*_*
1015
push:
@@ -41,3 +46,5 @@ jobs:
4146
product-name: hadoop
4247
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4348
registry-namespace: sdp
49+
# Default to true if not set/empty (if not triggered by workflow_dispatch)
50+
publish: ${{ inputs.publish == '' || inputs.publish == 'true' }}

.github/workflows/build_hbase.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ run-name: |
55
66
on:
77
workflow_dispatch:
8+
inputs:
9+
publish:
10+
description: Publish and sign images
11+
required: true
12+
default: "true"
813
schedule:
914
- cron: 0 0 2/2 * * # https://crontab.guru/#0_0_2/2_*_*
1015
push:
@@ -42,3 +47,5 @@ jobs:
4247
product-name: hbase
4348
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4449
registry-namespace: sdp
50+
# Default to true if not set/empty (if not triggered by workflow_dispatch)
51+
publish: ${{ inputs.publish == '' || inputs.publish == 'true' }}

.github/workflows/build_hive.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ run-name: |
55
66
on:
77
workflow_dispatch:
8+
inputs:
9+
publish:
10+
description: Publish and sign images
11+
required: true
12+
default: "true"
813
schedule:
914
- cron: 0 2 2/2 * * # https://crontab.guru/#0_2_2/2_*_*
1015
push:
@@ -42,4 +47,6 @@ jobs:
4247
product-name: hive
4348
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4449
registry-namespace: sdp
50+
# Default to true if not set/empty (if not triggered by workflow_dispatch)
51+
publish: ${{ inputs.publish == '' || inputs.publish == 'true' }}
4552
runners: ubicloud

.github/workflows/build_java-base.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ run-name: |
55
66
on:
77
workflow_dispatch:
8+
inputs:
9+
publish:
10+
description: Publish and sign images
11+
required: true
12+
default: "true"
813
schedule:
914
- cron: 0 0 1/2 * * # https://crontab.guru/#0_0_1/2_*_*
1015
push:
@@ -37,3 +42,5 @@ jobs:
3742
product-name: java-base
3843
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
3944
registry-namespace: sdp
45+
# Default to true if not set/empty (if not triggered by workflow_dispatch)
46+
publish: ${{ inputs.publish == '' || inputs.publish == 'true' }}

.github/workflows/build_java-devel.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ run-name: |
55
66
on:
77
workflow_dispatch:
8+
inputs:
9+
publish:
10+
description: Publish and sign images
11+
required: true
12+
default: "true"
813
schedule:
914
- cron: 0 1 1/2 * * # https://crontab.guru/#0_1_1/2_*_*
1015
push:
@@ -37,3 +42,5 @@ jobs:
3742
product-name: java-devel
3843
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
3944
registry-namespace: sdp
45+
# Default to true if not set/empty (if not triggered by workflow_dispatch)
46+
publish: ${{ inputs.publish == '' || inputs.publish == 'true' }}

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ run-name: |
55
66
on:
77
workflow_dispatch:
8+
inputs:
9+
publish:
10+
description: Publish and sign images
11+
required: true
12+
default: "true"
813
schedule:
914
- cron: 0 2 1/2 * * # https://crontab.guru/#0_2_1/2_*_*
1015
push:
@@ -41,3 +46,5 @@ jobs:
4146
product-name: kafka-testing-tools
4247
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4348
registry-namespace: sdp
49+
# Default to true if not set/empty (if not triggered by workflow_dispatch)
50+
publish: ${{ inputs.publish == '' || inputs.publish == 'true' }}

.github/workflows/build_kafka.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ run-name: |
55
66
on:
77
workflow_dispatch:
8+
inputs:
9+
publish:
10+
description: Publish and sign images
11+
required: true
12+
default: "true"
813
schedule:
914
- cron: 0 0 2/2 * * # https://crontab.guru/#0_0_2/2_*_*
1015
push:
@@ -42,3 +47,5 @@ jobs:
4247
product-name: kafka
4348
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4449
registry-namespace: sdp
50+
# Default to true if not set/empty (if not triggered by workflow_dispatch)
51+
publish: ${{ inputs.publish == '' || inputs.publish == 'true' }}

.github/workflows/build_krb5.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ run-name: |
55
66
on:
77
workflow_dispatch:
8+
inputs:
9+
publish:
10+
description: Publish and sign images
11+
required: true
12+
default: "true"
813
schedule:
914
- cron: 0 2 2/2 * * # https://crontab.guru/#0_2_2/2_*_*
1015
push:
@@ -37,3 +42,5 @@ jobs:
3742
product-name: krb5
3843
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
3944
registry-namespace: sdp
45+
# Default to true if not set/empty (if not triggered by workflow_dispatch)
46+
publish: ${{ inputs.publish == '' || inputs.publish == 'true' }}

0 commit comments

Comments
 (0)