version auto au merge dans main

This commit is contained in:
2026-05-24 13:52:33 +02:00
parent 264d9f1402
commit 3f4fa0cc37
2 changed files with 29 additions and 26 deletions
+28 -25
View File
@@ -1,34 +1,37 @@
name: Release name: Release
on: on:
release: push:
types: [published] branches:
- main
jobs: jobs:
docker: bump-version:
name: Build & push Docker image
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: write
steps: steps:
- name: Checkout - name: Checkout
uses: https://github.com/actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3
- name: Login to Gitea container registry
uses: https://github.com/docker/login-action@v3
with: with:
registry: git.goutailler-olivier.com fetch-depth: 0
username: ${{ gitea.actor }} token: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.RELEASE_TOKEN }}
- name: Set lowercase repo name - name: Setup Node.js
id: repo uses: actions/setup-node@v4
run: echo "name=$(echo '${{ gitea.repository }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
- name: Build and push
uses: https://github.com/docker/build-push-action@v6
with: with:
context: . node-version: '22'
push: true
tags: | - name: Configure git
git.goutailler-olivier.com/${{ steps.repo.outputs.name }}:${{ gitea.ref_name }} run: |
git.goutailler-olivier.com/${{ steps.repo.outputs.name }}:latest git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Bump patch version
run: npm version patch -m "chore: bump version to %s [skip ci]"
- name: Push version commit and tag
run: |
git push
git push --tags
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "bonsai-webapp", "name": "bonsai-webapp",
"version": "0.1.0", "version": "0.1.5",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",