-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): upgrade ci to use new build and linting
- Loading branch information
1 parent
f7fcddd
commit 8d20fe1
Showing
16 changed files
with
482 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { RuleConfigSeverity } from '@commitlint/types'; | ||
|
||
export default { | ||
extends: ['@commitlint/config-conventional'], | ||
parserPreset: 'conventional-changelog-conventionalcommits', | ||
rules: { | ||
'scope-enum': [RuleConfigSeverity.Error, 'always', [ | ||
'', | ||
'deps', | ||
'egress-api-container', | ||
'egress-ui-container', | ||
'main-api-container', | ||
'main-ui-container', | ||
'tre-api-container', | ||
'tre-ui-container', | ||
'tre-hasura-container', | ||
'tre-sql-pg-container', | ||
'tre-sql-trino-container' | ||
]], | ||
'subject-case': [RuleConfigSeverity.Error, 'never', []], | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Release branches where trunk branches are merge-committed to trigger releases | ||
|
||
release: | ||
- base-branch: | ||
- 'main' | ||
- 'maintenance/.+/[0-9]+\.([0-9]+|x)\.x' | ||
|
||
# Label any maintenance branch, trunk and release | ||
|
||
maintenance: | ||
- base-branch: | ||
- 'maintenance/.+/[0-9]+\.([0-9]+|x)\.x' | ||
|
||
# Label PRs into the main branch | ||
|
||
main: | ||
- base-branch: | ||
- 'main' | ||
|
||
# Labels for PRs on asset specific branches | ||
|
||
egress-api-container: | ||
- base-branch: | ||
- '.+/egress-api-container(/.+)?' | ||
|
||
egress-ui-container: | ||
- base-branch: | ||
- '.+/egress-ui-container(/.+)?' | ||
|
||
main-api-container: | ||
- base-branch: | ||
- '.+/main-api-container(/.+)?' | ||
|
||
main-ui-container: | ||
- base-branch: | ||
- '.+/main-ui-container(/.+)?' | ||
|
||
tre-api-container: | ||
- base-branch: | ||
- '.+/tre-api-container(/.+)?' | ||
|
||
tre-ui-container: | ||
- base-branch: | ||
- '.+/tre-ui-container(/.+)?' | ||
|
||
tre-hasura-container: | ||
- base-branch: | ||
- '.+/tre-hasura-container(/.+)?' | ||
|
||
tre-sql-pg-container: | ||
- base-branch: | ||
- '.+/tre-sql-pg-container(/.+)?' | ||
|
||
tre-sql-trino-container: | ||
- base-branch: | ||
- '.+/tre-sql-trino-container(/.+)?' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
## :construction: Suggest a change | ||
|
||
A clear and concise description of what you are changing. | ||
|
||
## :memo: Pre-merge checklist | ||
|
||
Ready to merge? Do not merge until all checks are satisfied. | ||
- [ ] :chart: Have all `required` CI checks passed on the most recent commit? | ||
- [ ] :black_nib: Is the PR title a valid and meaningful conventional-commit message? ie. `type(scope): summary` | ||
- [ ] :boom: Are `breaking changes` declared in the PR title in conventional-commit style? ie. `type!(scope): summary` | ||
- [ ] :art: Does new code follow the code style of this project? | ||
- [ ] :mag: Has new code been spellchecked and linted? | ||
- [ ] :book: Have docs been updated where necessary? | ||
- [ ] :poop: Have commits been checked for accidental file inclusions? |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Main API Container | ||
|
||
on: | ||
pull_request: | ||
# Ignore PRs on branches specifically intended for other assets | ||
branches-ignore: | ||
- '*/egress-api-container*' | ||
- '*/egress-ui-container*' | ||
- '*/main-ui-container*' | ||
- '*/tre-api-container*' | ||
- '*/tre-ui-container*' | ||
- '*/tre-hasura-container*' | ||
- '*/tre-sql-pg-container*' | ||
- '*/tre-sql-trino-container*' | ||
# Only consider PRs that change files for this asset, including ci scripts | ||
paths: | ||
- '.github/workflows/main-api-container.yaml' | ||
- 'src/DARE-API/**' | ||
- 'src/BL/**' | ||
# Make sure all workflows that are "required checks" for a given | ||
# branch protection rule have the same paths: and branches-ignore: | ||
# filters. Otherwise, you can end up in a deadlock waiting on a | ||
# required check that will never be executed. | ||
push: | ||
# Only release off of release and maintenance branches for this asset | ||
branches: | ||
- 'maintenance/main-api-container/[0-9]+.x.x' | ||
- 'maintenance/main-api-container/[0-9]+.[0-9]+.x' | ||
- 'main' | ||
# Only consider pushes that change files for this asset, including ci scripts | ||
paths: | ||
- '.github/workflows/main-api-container.yaml' | ||
- 'src/DARE-API/**' | ||
- 'src/BL/**' | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
actions: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
# Needed to generate releases safely | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
# Job name must be unique across repo to target | ||
# branch protection rules "required checks" properly! | ||
main-api-container: | ||
uses: SwanseaUniversityMedical/workflows/.github/workflows/pr-and-release-container.yaml@v1.8.1-containers | ||
with: | ||
job-name: main-api-container | ||
registry: ${{ vars.HARBOR_REGISTRY }} | ||
registry-user: ${{ vars.HARBOR_USER }} | ||
registry-repo: ${{ vars.HARBOR_PROJECT }}/${{ vars.HARBOR_REPO }}-main-api | ||
release-tag-format: 'DARE-Control-API-Container-${version}' | ||
release-branches: | | ||
[ | ||
'maintenance/main-api-container/[0-9]+\.([0-9]+|x)\.x', | ||
'main' | ||
] | ||
cosign-public-key: ${{ vars.COSIGN_PUBLIC_KEY }} | ||
slack-channel: ${{ vars.SLACK_CHANNEL }} | ||
build-file: src/DARE-API/Dockerfile | ||
build-context: src | ||
secrets: | ||
cosign-private-key: ${{ secrets.COSIGN_PRIVATE_KEY }} | ||
cosign-password: ${{ secrets.COSIGN_PASSWORD }} | ||
registry-token: ${{ secrets.HARBOR_TOKEN }} | ||
slack-token: ${{ secrets.SLACK_TOKEN }} |
Oops, something went wrong.