Skip to content

Commit

Permalink
ci: semantic release (#144)
Browse files Browse the repository at this point in the history
* ci: add semantic release config
  • Loading branch information
soniqua authored Nov 13, 2024
1 parent 3f81486 commit 66ef691
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 61 deletions.
37 changes: 36 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,46 @@ version: 2.1
orbs:
prodsec: snyk/[email protected]

executors:
k8s:
docker:
- image: alpine/k8s:1.28.14
resource_class: small
node:
docker:
- image: cimg/node:lts
resource_class: small

jobs:
unittest:
executor: k8s
steps:
- checkout
- run:
name: helm unittest
command: helm unittest charts/snyk-broker

publish:
executor: node
steps:
- checkout
- run:
name: publish
command: npx semantic-release

workflows:
scans:
validate_and_publish:
jobs:
- prodsec/secrets-scan:
name: Scan repository for secrets
context:
- snyk-bot-slack
channel: broker-alerts
- unittest
- publish:
context:
- team-hybrid-common
filters:
branches:
only:
- main
35 changes: 0 additions & 35 deletions .github/workflows/helm-releaser.yaml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/helm-validation.yaml

This file was deleted.

31 changes: 31 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"branches": [
{
"name": "main"
}
],
"repositoryUrl": "[email protected]:snyk/snyk-broker-helm.git",
"tagFormat": "snyk-broker-${version}",
"plugins": [
"@semantic-release/commit-analyzer",
[
"@semantic-release/exec",
{
"prepareCmd": "helm package --version ${nextRelease.version} .",
"execCwd": "charts/snyk-broker"
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "charts/snyk-broker/snyk-broker-*.tgz"
}
],
"successCommentCondition": false,
"failCommentCondition": false
}
]
]
}

0 comments on commit 66ef691

Please sign in to comment.