You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adds new `dockerfile_template` and `docker_extra_files` inputs for the
shared release workflow. allows connectors like `baton-sap-grc` to use
custom Dockerfiles (e.g., Java-based) for building container images
pushed to the public ECR registry
Copy file name to clipboardExpand all lines: .github/workflows/release.yaml
+84-7Lines changed: 84 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,16 @@ on:
27
27
type: boolean
28
28
default: true
29
29
description: "Whether to release with Docker image support."
30
+
dockerfile_template:
31
+
required: false
32
+
type: string
33
+
default: ""
34
+
description: "Path to a custom Dockerfile template in the caller repo (relative to repo root). Only valid when lambda is false. Supports ${REPO_NAME} substitution."
35
+
docker_extra_files:
36
+
required: false
37
+
type: string
38
+
default: ""
39
+
description: "Comma-separated list of extra files/directories from the caller repo to include in the Docker build context (e.g., 'java,config'). Only valid when dockerfile_template is set."
30
40
secrets:
31
41
RELENG_GITHUB_TOKEN:
32
42
required: true
@@ -47,7 +57,35 @@ env:
47
57
GENERATED_DIR: "_generated"
48
58
49
59
jobs:
60
+
validate-inputs:
61
+
runs-on: ubuntu-latest
62
+
steps:
63
+
- name: Validate tag format
64
+
run: |
65
+
TAG="${{ inputs.tag }}"
66
+
# Strict semver regex with 'v' prefix (per https://semver.org)
The workflow substitutes `${REPO_NAME}` in your Dockerfile if present, so you can also use:
90
+
91
+
```dockerfile
92
+
COPY ${TARGETPLATFORM}/${REPO_NAME} /${REPO_NAME}
93
+
```
94
+
95
+
**Note:** Use `docker_extra_files` to include additional files or directories (comma-separated) in the Docker build context. These are paths relative to your connector repository root.
0 commit comments