Skip to content

Commit 75951c6

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

File tree

42 files changed

+84
-702
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+84
-702
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ relates to #1234
1414
- [ ] Changelogs
1515
- [ ] Changelog in the root directory was adjusted (see [here](https://github.com/stackitcloud/stackit-sdk-go/blob/f1e375a38064f798821d22a951bc74ca8a9c8845/CHANGELOG.md))
1616
- [ ] Changelog(s) of the service(s) were adjusted (see e.g. [here](https://github.com/stackitcloud/stackit-sdk-go/blob/f1e375a38064f798821d22a951bc74ca8a9c8845/services/dns/CHANGELOG.md))
17+
- [ ] VERSION file(s) of the service(s) were adjusted
1718
- [ ] Code format was applied: `make fmt`
1819
- [ ] Examples were added / adjusted (see `examples/` directory)
1920
- [ ] Unit tests got implemented or updated

.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

.github/workflows/ci.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,3 @@ jobs:
3939
run: |
4040
make lint
4141
scripts/check-sync-tidy.sh
42-
- name: Lint scripts
43-
run: |
44-
make lint-scripts

Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ lint-golangci-lint: ## Lint Go code
4040
@echo ">> Linting with golangci-lint"
4141
@$(SCRIPTS_BASE)/lint-golangci-lint.sh "${skip-non-generated-files}" "${service}"
4242

43-
lint-scripts: ## Lint scripts
44-
@echo ">> Linting scripts"
45-
@cd ${ROOT_DIR}/scripts && golangci-lint run ${GOLANG_CI_ARGS}
46-
4743
sync-tidy: ## Sync and tidy dependencies
4844
@echo ">> Syncing and tidying dependencies"
4945
@$(SCRIPTS_BASE)/sync-tidy.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

go.work

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ use (
2929
./examples/ske
3030
./examples/sqlserverflex
3131
./examples/waiter
32-
./scripts
3332
./services/alb
3433
./services/archiving
3534
./services/authorization

scripts/automatic_tag.go

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

0 commit comments

Comments
 (0)