Skip to content

Commit

Permalink
cicd(Create pipeline #4): Semantic release implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
raider444 committed Oct 14, 2024
1 parent d61ea3b commit 6ac8756
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/semantic-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- main
- release/**
- cicd
jobs:
release:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -45,15 +44,15 @@ jobs:

- name: Publish Helm chart
uses: raider444/helm-oci-chart-releaser@1.0.5
if: steps.release.outputs.released == 'true'
with:
name: psytican-bot
repository: raider444/charts
# tag: ${{ steps.release.outputs }} # try to use tag defined in Chart.yaml
path: chart # Default charts/{name}
path: chart
registry: ghcr.io
registry_username: ${{ github.actor }}
registry_password: ${{ secrets.GITHUB_TOKEN }}
update_dependencies: 'true' # Defaults to false
update_dependencies: 'true'

- name: Publish | Upload to GitHub Release Assets
uses: python-semantic-release/publish-action@v9.8.9
Expand Down
4 changes: 2 additions & 2 deletions chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.12
version: 0.1.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: 0.2.4-alpha.8
appVersion: 0.2.3
2 changes: 1 addition & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ image:
repository: git.psynet.su/genesis/psytican-experiment-bot
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "0.2.4-alpha.8"
tag: "0.2.3"

imagePullSecrets: []
nameOverride: ""
Expand Down
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "psytican-bot"
version = "0.2.4-alpha.8"
version = "0.2.3"
description = "Psytican Helper bot"
authors = ["Igor I Shatunov <genesis@psytican.com>"]
license = "MIT"
Expand Down Expand Up @@ -72,10 +72,10 @@ match = "release/"
prerelease_token = "rc"
prerelease = true

[tool.semantic_release.branches.cicd]
match = "(cicd)"
prerelease_token = "alpha"
prerelease = true
#[tool.semantic_release.branches.cicd]
#match = "(cicd)"
#prerelease_token = "alpha"
#prerelease = true

[tool.semantic_release.changelog.default_templates]
changelog_file = "CHANGELOG.md"
Expand Down Expand Up @@ -106,8 +106,8 @@ default = "semantic-release <semantic-release>"
[tool.semantic_release.commit_parser_options]
allowed_tags = ["build", "chore", "ci", "cicd", "docs", "feat", "feature", "fix", "perf", "style", "refactor", "test"]
minor_tags = ["feat", "feature"]
patch_tags = ["fix", "perf", "cicd"]
#patch_tags = ["fix", "perf"]
#patch_tags = ["fix", "perf", "cicd"]
patch_tags = ["fix", "perf"]
default_bump_level = 0

[tool.semantic_release.remote]
Expand Down

0 comments on commit 6ac8756

Please sign in to comment.