Skip to content

Commit 67c5c4d

Browse files
committed
feat: Create tags for services automatically
Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
1 parent 41d4448 commit 67c5c4d

36 files changed

Lines changed: 83 additions & 517 deletions

File tree

.github/workflows/cd.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CD Workflow to update tags of services
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
check-version:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
pull-requests: write
13+
contents: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- name: Push tag for each updated package
19+
env:
20+
GH_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
21+
run: |
22+
git config --global user.name "SDK Releaser Bot"
23+
git config --global user.email "noreply@stackit.de"
24+
25+
scripts/update-service-tags.sh

RELEASE.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ The SDK is split into all the different STACKIT [services](https://github.com/st
1717

1818
**Releasing a single service**
1919

20-
1. Check out latest main branch on your machine
21-
2. Create git tag: `git tag services/<SERVICE-NAME>/vX.X.X`
22-
- E.g. for the `sqlserverflex` service version `v1.0.1` the git tag would be named `services/sqlserverflex/v1.0.1`
23-
3. Push the git tag: `git push origin --tags`
20+
1. Update the VERSION file of the corresponding service
21+
2. When the PR is merged to main the tag is created automatically
2422

2523
### Whole SDK
2624

scripts/automatic_tag.go

Lines changed: 0 additions & 326 deletions
This file was deleted.

0 commit comments

Comments
 (0)