Skip to content

Commit c61d277

Browse files
authored
ci: Add publish toggle (#1513)
* ci: Add publish toggle * ci: Use boolean input * ci: Use ${{ }} for input * ci: Invert input to make defaulting work * ci: Adjust input description
1 parent bee0cb5 commit c61d277

26 files changed

Lines changed: 208 additions & 2 deletions

.github/workflows/build_airflow.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ run-name: |
55
66
on:
77
workflow_dispatch:
8+
inputs:
9+
skip-publish:
10+
description: Skip publishing and signing images
11+
type: boolean
12+
required: true
13+
default: false
814
schedule:
915
- cron: 0 0 1/2 * * # https://crontab.guru/#0_0_1/2_*_*
1016
push:
@@ -39,3 +45,5 @@ jobs:
3945
product-name: airflow
4046
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4147
registry-namespace: sdp
48+
# Default to true if not set/empty (if not triggered by workflow_dispatch)
49+
publish: ${{ !inputs.skip-publish }}

.github/workflows/build_druid.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ run-name: |
55
66
on:
77
workflow_dispatch:
8+
inputs:
9+
skip-publish:
10+
description: Skip publishing and signing images
11+
type: boolean
12+
required: true
13+
default: false
814
schedule:
915
- cron: 0 1 1/2 * * # https://crontab.guru/#0_1_1/2_*_*
1016
push:
@@ -41,3 +47,5 @@ jobs:
4147
product-name: druid
4248
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4349
registry-namespace: sdp
50+
# Default to true if not set/empty (if not triggered by workflow_dispatch)
51+
publish: ${{ !inputs.skip-publish }}

.github/workflows/build_hadoop.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ run-name: |
55
66
on:
77
workflow_dispatch:
8+
inputs:
9+
skip-publish:
10+
description: Skip publishing and signing images
11+
type: boolean
12+
required: true
13+
default: false
814
schedule:
915
- cron: 0 2 1/2 * * # https://crontab.guru/#0_2_1/2_*_*
1016
push:
@@ -41,3 +47,5 @@ jobs:
4147
product-name: hadoop
4248
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4349
registry-namespace: sdp
50+
# Default to true if not set/empty (if not triggered by workflow_dispatch)
51+
publish: ${{ !inputs.skip-publish }}

.github/workflows/build_hbase.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ run-name: |
55
66
on:
77
workflow_dispatch:
8+
inputs:
9+
skip-publish:
10+
description: Skip publishing and signing images
11+
type: boolean
12+
required: true
13+
default: false
814
schedule:
915
- cron: 0 0 2/2 * * # https://crontab.guru/#0_0_2/2_*_*
1016
push:
@@ -42,3 +48,5 @@ jobs:
4248
product-name: hbase
4349
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4450
registry-namespace: sdp
51+
# Default to true if not set/empty (if not triggered by workflow_dispatch)
52+
publish: ${{ !inputs.skip-publish }}

.github/workflows/build_hive.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ run-name: |
55
66
on:
77
workflow_dispatch:
8+
inputs:
9+
skip-publish:
10+
description: Skip publishing and signing images
11+
type: boolean
12+
required: true
13+
default: false
814
schedule:
915
- cron: 0 2 2/2 * * # https://crontab.guru/#0_2_2/2_*_*
1016
push:
@@ -42,4 +48,6 @@ jobs:
4248
product-name: hive
4349
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4450
registry-namespace: sdp
51+
# Default to true if not set/empty (if not triggered by workflow_dispatch)
52+
publish: ${{ !inputs.skip-publish }}
4553
runners: ubicloud

.github/workflows/build_java-base.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ run-name: |
55
66
on:
77
workflow_dispatch:
8+
inputs:
9+
skip-publish:
10+
description: Skip publishing and signing images
11+
type: boolean
12+
required: true
13+
default: false
814
schedule:
915
- cron: 0 0 1/2 * * # https://crontab.guru/#0_0_1/2_*_*
1016
push:
@@ -37,3 +43,5 @@ jobs:
3743
product-name: java-base
3844
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
3945
registry-namespace: sdp
46+
# Default to true if not set/empty (if not triggered by workflow_dispatch)
47+
publish: ${{ !inputs.skip-publish }}

.github/workflows/build_java-devel.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ run-name: |
55
66
on:
77
workflow_dispatch:
8+
inputs:
9+
skip-publish:
10+
description: Skip publishing and signing images
11+
type: boolean
12+
required: true
13+
default: false
814
schedule:
915
- cron: 0 1 1/2 * * # https://crontab.guru/#0_1_1/2_*_*
1016
push:
@@ -37,3 +43,5 @@ jobs:
3743
product-name: java-devel
3844
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
3945
registry-namespace: sdp
46+
# Default to true if not set/empty (if not triggered by workflow_dispatch)
47+
publish: ${{ !inputs.skip-publish }}

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ run-name: |
55
66
on:
77
workflow_dispatch:
8+
inputs:
9+
skip-publish:
10+
description: Skip publishing and signing images
11+
type: boolean
12+
required: true
13+
default: false
814
schedule:
915
- cron: 0 2 1/2 * * # https://crontab.guru/#0_2_1/2_*_*
1016
push:
@@ -41,3 +47,5 @@ jobs:
4147
product-name: kafka-testing-tools
4248
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4349
registry-namespace: sdp
50+
# Default to true if not set/empty (if not triggered by workflow_dispatch)
51+
publish: ${{ !inputs.skip-publish }}

.github/workflows/build_kafka.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ run-name: |
55
66
on:
77
workflow_dispatch:
8+
inputs:
9+
skip-publish:
10+
description: Skip publishing and signing images
11+
type: boolean
12+
required: true
13+
default: false
814
schedule:
915
- cron: 0 0 2/2 * * # https://crontab.guru/#0_0_2/2_*_*
1016
push:
@@ -42,3 +48,5 @@ jobs:
4248
product-name: kafka
4349
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4450
registry-namespace: sdp
51+
# Default to true if not set/empty (if not triggered by workflow_dispatch)
52+
publish: ${{ !inputs.skip-publish }}

.github/workflows/build_krb5.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ run-name: |
55
66
on:
77
workflow_dispatch:
8+
inputs:
9+
skip-publish:
10+
description: Skip publishing and signing images
11+
type: boolean
12+
required: true
13+
default: false
814
schedule:
915
- cron: 0 2 2/2 * * # https://crontab.guru/#0_2_2/2_*_*
1016
push:
@@ -37,3 +43,5 @@ jobs:
3743
product-name: krb5
3844
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
3945
registry-namespace: sdp
46+
# Default to true if not set/empty (if not triggered by workflow_dispatch)
47+
publish: ${{ !inputs.skip-publish }}

0 commit comments

Comments
 (0)