Skip to content

Commit d489897

Browse files
committed
update readme
1 parent e7d29aa commit d489897

1 file changed

Lines changed: 80 additions & 0 deletions

File tree

README.md

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,43 @@ jobs:
157157
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
158158
```
159159

160+
## quality checks - dev container version
161+
This workflow runs common quality checks using a prebuilt devcontainer (https://github.com/NHSDigital/eps-devcontainers).
162+
To use this, you must have overridden any common makefile targets described in https://github.com/NHSDigital/eps-devcontainers?tab=readme-ov-file#common-makefile-targets
163+
#### Inputs
164+
165+
- `run_sonar`: Whether to run sonar checks or not.
166+
- `run_docker_scan`: whether to run a scan of docker images
167+
- `docker_images`: csv list of docker images to scan. These must match images produced by make docker-build
168+
- `runtime_docker_image`: the docker image to run everything on. This should just be the image name and tag pushed to https://github.com/NHSDigital/eps-devcontainers
169+
#### Secret Inputs
170+
- `SONAR_TOKEN`: Token used to authenticate to sonar
171+
172+
#### Outputs
173+
174+
None
175+
176+
#### Example
177+
178+
To use this workflow in your repository, call it from another workflow file:
179+
180+
```yaml
181+
name: Release
182+
183+
on:
184+
workflow_dispatch:
185+
186+
jobs:
187+
quality_checks:
188+
uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks.yml@f5c8313a10855d0cc911db6a9cd666494c00045a
189+
needs: [get_config_values]
190+
with:
191+
runtime_docker_image: "${{ needs.get_config_values.outputs.devcontainer_image }}:githubactions-${{ needs.get_config_values.outputs.devcontainer_version }}"
192+
run_docker_scan: true
193+
docker_images: fhir-facade,validator
194+
secrets:
195+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
196+
```
160197

161198

162199
## tag release
@@ -197,6 +234,49 @@ jobs:
197234
publish_package: false
198235
```
199236

237+
## tag release - devcontainer version
238+
This workflow uses the semantic-release npm package to generate a new version tag, changelog, and github release for a repo.
239+
240+
#### Inputs
241+
242+
- `dry_run`: Whether to run in dry_run mode (do not create tags) or not
243+
- `branch_name`: The branch name to base the release on
244+
- `runtime_docker_image`: the docker image to run everything on. This should just be the image name and tag pushed to https://github.com/NHSDigital/eps-devcontainers
245+
- `publish_packages`: comma separated list of package folders to publish to an npm registry
246+
- `tagFormat`: Default `v\\${version}`. A template for the version tag.
247+
- `main_branch`: The branch to use for publishing. Defaults to main
248+
- `extra_artifact_name`: optional param to include an extra artifact in the release
249+
- `extra_artifact_id`: optional param of the extra artifact id to include in the release
250+
- `extra_artifact_run_id`: optional param of the run id to download the extra artifact id to include in the release
251+
- `extra_artifact_repository` optional param to indicate which repo the run to download the artifact was from
252+
253+
#### Outputs
254+
255+
- `version_tag`: The version tag created by semantic-release.
256+
- `change_set_version`: A timestamped string that con be used for creating changesets.
257+
258+
#### Example
259+
260+
To use this workflow in your repository, call it from another workflow file:
261+
262+
```yaml
263+
name: Release
264+
265+
on:
266+
workflow_dispatch:
267+
268+
jobs:
269+
tag_release:
270+
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@f5c8313a10855d0cc911db6a9cd666494c00045a
271+
needs: [get_config_values]
272+
with:
273+
tagFormat: "v\\${version}-beta"
274+
dry_run: true
275+
runtime_docker_image: "${{ needs.get_config_values.outputs.devcontainer_image }}:githubactions-${{ needs.get_config_values.outputs.devcontainer_version }}"
276+
branch_name: main
277+
publish_package: false
278+
```
279+
200280

201281
## Secret scanning docker
202282

0 commit comments

Comments
 (0)