chore: add semantic version to pipeline
Some checks failed
Publish image / bump-crate (push) Failing after 38s
Publish image / create-docker-images (push) Has been skipped

This commit is contained in:
Alexander Navarro 2025-03-24 16:23:40 -03:00
parent e0b259cc6f
commit 0f62d4e2cb
3 changed files with 42 additions and 19 deletions

View file

@ -6,8 +6,24 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
bump-crate:
runs-on: rust
steps:
- name: Bump version and publish
uses: https://github.com/cocogitto/cocogitto-action@v3.10
env:
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_TOKEN_FORGEJO }}
with:
release: true
check-latest-tag-only: true
git-user: 'Cog Bot'
git-user-email: 'cog@alecodes.page'
create-docker-images: create-docker-images:
runs-on: host runs-on: host
needs:
- bump-crate
steps: steps:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3

View file

@ -7,8 +7,13 @@ generate_mono_repository_package_tags = true
branch_whitelist = [] branch_whitelist = []
skip_ci = "[skip ci]" skip_ci = "[skip ci]"
skip_untracked = false skip_untracked = false
pre_bump_hooks = [] pre_bump_hooks = [
post_bump_hooks = [] "sed -E -i 's/(\"version\":) \"[0-9.]{5}\"/\\1 \"{{version}}\"/gi' package.json",
"cargo build --release",
"echo 'bumping from {{latest|0.0.0}} to {{version|0.0.1}}'",
"cargo bump {{version|0.0.1}}",
]
post_bump_hooks = ["git push", "git push origin {{version_tag}}"]
pre_package_bump_hooks = [] pre_package_bump_hooks = []
post_package_bump_hooks = [] post_package_bump_hooks = []

View file

@ -1,6 +1,7 @@
{ {
"name": "compendium", "name": "compendium",
"module": "index.ts", "module": "index.ts",
"version": "0.0.0",
"devDependencies": { "devDependencies": {
"@alecodes/bun-plugin-sass": "^0.1.2", "@alecodes/bun-plugin-sass": "^0.1.2",
"@alecodes/bun-static-builder": "^0.1.0", "@alecodes/bun-static-builder": "^0.1.0",
@ -16,3 +17,4 @@
"htmx.org": "2.0.4" "htmx.org": "2.0.4"
} }
} }