feat: Add tags to releases
All checks were successful
Build and Push Docker Image / Build (push) Successful in 19s
All checks were successful
Build and Push Docker Image / Build (push) Successful in 19s
This commit is contained in:
parent
031ff9735f
commit
a368e4d183
1 changed files with 13 additions and 1 deletions
|
@ -1,6 +1,12 @@
|
|||
name: Build and Push Docker Image
|
||||
run-name: Build and Push Docker Image
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ["Release"]
|
||||
types:
|
||||
- completed
|
||||
branches:
|
||||
- main
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
@ -11,6 +17,12 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Extract tag
|
||||
run: |
|
||||
TAG=$(git describe --tags --abbrev=0)
|
||||
echo "TAG=$TAG" >> $GITHUB_ENV
|
||||
- uses: actions/setup-node@v5
|
||||
with:
|
||||
node-version: 24
|
||||
|
@ -34,4 +46,4 @@ jobs:
|
|||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: |
|
||||
git.kjan.de/templates/react
|
||||
git.kjan.de/templates/react:${{ gitea.event_name == 'workflow_run' && env.tag || 'dev' }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue