Skip to content

Commit f424b12

Browse files
committed
Add reusable workflow for new dss ci/cd.
1 parent fb52e53 commit f424b12

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## B-Open Solutions Ltd.
2+
## CI/CD workflows
3+
4+
on:
5+
workflow_dispatch:
6+
workflow_call:
7+
inputs:
8+
branch:
9+
description: "Branch to check for existence (e.g., 'upstream/b-open')"
10+
required: true
11+
chart-repo:
12+
description: "GitHub repository in 'owner/repo' format (e.g., 'ecmwf/dss-broker-chart')"
13+
required: true
14+
image_name:
15+
description: "Name of the Docker image to build (e.g., 'broker')"
16+
required: true
17+
repositories:
18+
description: "Optional list of additional repositories to check (newline-separated)"
19+
required: false
20+
secrets:
21+
github-pat:
22+
description: "PAT token to access the repo"
23+
required: true
24+
25+
jobs:
26+
validate-branch:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Validate branch existence
30+
if: ${{ inputs.branch == 'upstream/b-open' }}
31+
shell: bash
32+
env:
33+
GITHUB_PAT: ${{ inputs.github-pat }}
34+
run: |
35+
# Debugging Info (Safe)
36+
echo "Validating the GitHub PAT"

0 commit comments

Comments
 (0)