13 Commits

Author SHA1 Message Date
5867cfc3e1 Merge pull request 'b' (#26) from bugix/pipeline into staging
Reviewed-on: #26
2025-10-04 13:11:47 +02:00
8771e1ee02 b 2025-10-04 13:11:18 +02:00
2be4331a6e Merge pull request 'a' (#25) from bugix/pipeline into staging
Reviewed-on: #25
2025-10-04 13:07:11 +02:00
98754be109 a 2025-10-04 13:06:43 +02:00
9ee2750534 Merge pull request 'changed to pull request only' (#24) from bugix/pipeline into staging
Reviewed-on: #24
2025-10-04 13:05:47 +02:00
9920c94a8b changed to pull request only 2025-10-04 13:04:30 +02:00
b7bc477d2e .gitea/workflows/build.yaml aktualisiert 2025-10-04 13:02:11 +02:00
ab11665665 dani des is men push vorm pennen gehen
Some checks failed
Gitea CI/CD / Set Tag Name (push) Successful in 6s
Gitea CI/CD / build-and-test (push) Successful in 48s
Gitea CI/CD / Create Tag (push) Has been cancelled
Gitea CI/CD / docker-build-and-push (push) Has been cancelled
2025-10-04 02:06:22 +02:00
37468b6785 added version tag output
All checks were successful
Gitea CI/CD / Set Tag Name (push) Successful in 5s
Gitea CI/CD / build-and-test (push) Successful in 45s
Gitea CI/CD / docker-build-and-push (push) Successful in 5m57s
Gitea CI/CD / Create Tag (push) Successful in 5s
2025-10-04 01:51:56 +02:00
471767c4ed added farther checking for existing tags 2025-10-04 01:43:57 +02:00
596baba5ef added permissions for packages and moved token to actions checkout
All checks were successful
Gitea CI/CD / Set Tag Name (push) Successful in 5s
Gitea CI/CD / build-and-test (push) Successful in 44s
Gitea CI/CD / docker-build-and-push (push) Successful in 5m39s
Gitea CI/CD / Create Tag (push) Successful in 5s
2025-10-04 01:41:06 +02:00
12390031f9 added permissions to write
All checks were successful
Gitea CI/CD / Set Tag Name (push) Successful in 5s
Gitea CI/CD / build-and-test (push) Successful in 52s
Gitea CI/CD / docker-build-and-push (push) Successful in 7m29s
Gitea CI/CD / Create Tag (push) Successful in 7s
2025-10-04 01:15:16 +02:00
daed8c1462 .gitea/workflows/build.yaml aktualisiert
Some checks failed
Gitea CI/CD / Set Tag Name (push) Successful in 5s
Gitea CI/CD / docker-build-and-push (push) Has been cancelled
Gitea CI/CD / Create Tag (push) Has been cancelled
Gitea CI/CD / build-and-test (push) Has been cancelled
2025-10-04 00:52:35 +02:00

View File

@@ -2,11 +2,16 @@ name: Gitea CI/CD
on:
workflow_dispatch:
push:
branches: [ "development", "main", "staging"]
tags: [ "v*.*.*" ]
#push:
#branches: [ "development", "main", "staging"]
#tags: [ "v*.*.*" ]
pull_request:
branches: [ "development", "main", "staging" ]
#branches: [ "development", "main", "staging" ]
tags: [ "v*.*.*" ]
permissions:
contents: write
packages: write
env:
DOTNET_VERSION: '8.0.x'
@@ -46,6 +51,8 @@ jobs:
tag_name: ${{ steps.set_tag.outputs.tag_name }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Determine next semantic version tag
id: set_tag
@@ -75,6 +82,7 @@ jobs:
fi
new_tag="v${major}.${minor}.${patch}"
echo "Creating new version tag: ${new_tag}"
echo "tag_name=${new_tag}" >> $GITHUB_OUTPUT
docker-build-and-push:
@@ -109,15 +117,31 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Git user
- name: Check if tag already exists
id: check_tag
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git fetch --tags
if git rev-parse "${{ needs.set-tag.outputs.tag_name }}" >/dev/null 2>&1; then
echo "Tag ${{ needs.set-tag.outputs.tag_name }} already exists!"
echo "exists=true" >> $GITHUB_OUTPUT
else
echo "Tag ${{ needs.set-tag.outputs.tag_name }} does not exist"
echo "exists=false" >> $GITHUB_OUTPUT
fi
- name: Create and push tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: steps.check_tag.outputs.exists == 'false'
run: |
echo "Creating new tag: ${{ needs.set-tag.outputs.tag_name }}"
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git tag ${{ needs.set-tag.outputs.tag_name }}
git push origin ${{ needs.set-tag.outputs.tag_name }}
git push -u origin ${{ needs.set-tag.outputs.tag_name }}
echo "Tag created and pushed successfully"
- name: Skip tag creation
if: steps.check_tag.outputs.exists == 'true'
run: |
echo "Skipping tag creation - ${{ needs.set-tag.outputs.tag_name }} already exists"