ci: add release.yaml

This commit is contained in:
2025-10-03 11:56:33 +00:00
parent a3c1e20155
commit 2f4cb10cc1

View File

@@ -0,0 +1,30 @@
name: Release
on:
push:
tags:
- '*.*.*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: git.tools.ldpt.fr
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: git.tools.ldpt.fr/actions/node-semantic-release:${{ github.ref_name }}