Compare commits

...
Sign in to create a new pull request.

12 commits

Author SHA1 Message Date
a142f1f408
Merge pull request 'release-v1.4.0' (#12) from release-v1.4.0 into main
Reviewed-on: #12
2025-09-28 14:43:18 +00:00
b3ae47c505
release-v1.4.0
Some checks failed
/ publish_password (pull_request) Failing after 0s
/ validate_password (pull_request) Failing after 0s
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
2025-09-28 16:42:50 +02:00
fc39eb83f9
Merge pull request '#9' (#11) from #9 into main
Reviewed-on: #11
2025-09-28 14:37:54 +00:00
ff5049d6f3
1.4.0: doc: add release procedure
Some checks failed
/ validate_password (pull_request) Failing after 0s
/ publish_password (pull_request) Failing after 0s
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
2025-09-28 16:37:04 +02:00
c4cb5506fa
1.4.0: script: add correct script
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
2025-09-28 16:37:01 +02:00
9e12dd876f
1.4.0: doc: remove ret line
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
2025-09-28 16:08:42 +02:00
2002613109 Merge pull request 'release-v1.3.0' (#8) from release-v1.3.0 into main
Reviewed-on: #8
2025-09-07 17:27:42 +00:00
d7fe8508a9
release-v1.3.0
All checks were successful
/ publish_password (pull_request) Successful in 7m27s
/ validate_password (pull_request) Successful in 7m31s
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
2025-09-07 19:33:20 +02:00
707c2242de Merge pull request '#3' (#7) from #3 into main
Reviewed-on: #7
2025-09-07 17:13:32 +00:00
172a90b2fc
update script #3
All checks were successful
/ publish_password (pull_request) Successful in 7m27s
/ validate_password (pull_request) Successful in 7m23s
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
2025-09-07 19:02:32 +02:00
ba65a7c359
update readme script #3
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
2025-09-07 19:01:24 +02:00
113f8b8431 Merge pull request 'update Makefile #2' (#6) from #2 into main
Reviewed-on: #6
2025-08-12 20:53:43 +00:00
7 changed files with 33 additions and 63 deletions

View file

@ -1,58 +0,0 @@
default:
image: debian:11
stages:
- build
- publish
- release
build:
stage: build
image: golang:1.21-alpine
before_script:
- apk update && apk add --no-cache make git
script:
- make build_password
artifacts:
paths:
- ./bin/*
publish_main:
stage: publish
image: golang:1.21-alpine
variables:
VER: latest
before_script:
- apk update && apk add --no-cache make git curl
script:
- make publish_password
needs:
- build
only:
- main
release_tag:
stage: publish
image: golang:1.21-alpine
variables:
VER: ${CI_COMMIT_TAG}
before_script:
- apk update && apk add --no-cache make git curl
script:
- make publish_password
needs:
- build
only:
- tags
release_job:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
- if: $CI_COMMIT_TAG
before_script:
- apk update && apk add --no-cache bash curl
script:
- bash ./scripts/gitlab_release.sh -r ./docs/release/$CI_COMMIT_TAG* -a ./bin/
needs:
- build

View file

@ -4,11 +4,11 @@ Some tools use and dev for h6n, many are in shell/bash could be use in other pro
## Version ## Version
v1.2.0: Valentin v1.4.0: Gabriel
## release script ## release script
To use the release script it's simple `curl https://gitlab.g3e.fr/h6n/tools/-/raw/main/scripts/release.sh | bash -s - [param list]` To use the release script it's simple `curl https://git.g3e.fr/H6N/tools/raw/branch/main/scripts/release.sh | bash -s - [param list]`
In dev mode you can do `cat ./scripts/release.sh | bash -s - [param list]` In dev mode you can do `cat ./scripts/release.sh | bash -s - [param list]`

View file

@ -4,6 +4,17 @@
The naming policy is based on first names for this project. The naming policy is based on first names for this project.
## Release list # Release procedure
```
bash ./scripts/release.sh -t [VERSION] -n [RELEASE_NAME] -c
edit specifique files:
- ./release/next_release.md
bash ./scripts/release.sh
```
## Release list
- [v1.4.0 Gabriel](./docs/release/v1.4.0_gabriel.md)
- [v1.3.0 Xavier](./release/v1.3.0_xavier.md)
- [v1.2.0 Valentin](./release/v1.2.0_valentin.md)
- [v1.0.0 Damian](./release/v1.0.0_damian.md) - [v1.0.0 Damian](./release/v1.0.0_damian.md)

View file

@ -0,0 +1,8 @@
# Xavier v1.3.0
## Release feature
- update readme
- update script
- add ci for forgejo
- clean old ci

View file

@ -0,0 +1,6 @@
# Gabriel v1.4.0
## Release feature
- [PR](https://git.g3e.fr/H6N/tools/pulls/11) edit doc release.md file
- [PR](https://git.g3e.fr/H6N/tools/pulls/11) add procedure upgrade

View file

@ -17,7 +17,7 @@ exec_with_dry_run () {
main () { main () {
[[ -f ./libs/shflags ]] && . ./libs/shflags || eval "$(curl --silent https://gitlab.g3e.fr/h6n/tools/-/raw/main/libs/shflags)" [[ -f ./libs/shflags ]] && . ./libs/shflags || eval "$(curl --silent https://git.g3e.fr/H6N/tools/raw/branch/main/libs/shflags)"
[[ -f ./.config/gitlab_release ]] && . ./.config/gitlab_release [[ -f ./.config/gitlab_release ]] && . ./.config/gitlab_release
DEFINE_string 'artifact_path' '' 'Path of artifact list' 'a' DEFINE_string 'artifact_path' '' 'Path of artifact list' 'a'

View file

@ -34,7 +34,7 @@ edit_file () {
} }
main () { main () {
[[ -f ./libs/shflags ]] && . ./libs/shflags || eval "$(curl --silent https://gitlab.g3e.fr/h6n/tools/-/raw/main/libs/shflags)" [[ -f ./libs/shflags ]] && . ./libs/shflags || eval "$(curl --silent https://git.g3e.fr/H6N/tools/raw/branch/main/libs/shflags)"
@ -43,6 +43,7 @@ main () {
DEFINE_boolean 'create_branch' false 'Creation de la branch' 'c' DEFINE_boolean 'create_branch' false 'Creation de la branch' 'c'
DEFINE_boolean 'dryrun' false 'Enable dry-run mode' 'd' DEFINE_boolean 'dryrun' false 'Enable dry-run mode' 'd'
DEFINE_string 'release_path' './docs/release' 'Release path' 'p' DEFINE_string 'release_path' './docs/release' 'Release path' 'p'
DEFINE_string 'doc_path' './docs/release.md' 'Documentation path' 'u'
DEFINE_string 'regex_version' 'v[0-9]*.[0-9]*.[0-9]*' 'Version Regex' 'r' DEFINE_string 'regex_version' 'v[0-9]*.[0-9]*.[0-9]*' 'Version Regex' 'r'
FLAGS "$@" || exit $? FLAGS "$@" || exit $?
@ -71,6 +72,8 @@ main () {
echo "Release ${NAME} - ${VERSION}" echo "Release ${NAME} - ${VERSION}"
echo "Edit README file" echo "Edit README file"
edit_file "${FLAGS_dryrun}" "sed ${SED_PARAM} 's/^${FLAGS_regex_version}: [A-Z|a-z| ]*$/${VERSION}: ${NAME}/' ./README.md" "./README.md" || return 1 edit_file "${FLAGS_dryrun}" "sed ${SED_PARAM} 's/^${FLAGS_regex_version}: [A-Z|a-z| ]*$/${VERSION}: ${NAME}/' ./README.md" "./README.md" || return 1
edit_file "${FLAGS_dryrun}" "sed ${SED_PARAM} '/^## Release list$/a\\
- [${VERSION} ${NAME}](${FLAGS_release_path}/${VERSION}_${LOWER_NAME}.md)' ${FLAGS_doc_path}" "${FLAGS_doc_path}" || return 1
edit_file "${FLAGS_dryrun}" "mv '${FLAGS_release_path}/next_release.md' '${FLAGS_release_path}/${VERSION}_${LOWER_NAME}.md'" "${FLAGS_release_path}/${VERSION}_${LOWER_NAME}.md" || return 1 edit_file "${FLAGS_dryrun}" "mv '${FLAGS_release_path}/next_release.md' '${FLAGS_release_path}/${VERSION}_${LOWER_NAME}.md'" "${FLAGS_release_path}/${VERSION}_${LOWER_NAME}.md" || return 1
exec_with_dry_run "${FLAGS_dryrun}" "git commit -s -S -m 'release-${VERSION}'" || return 1 exec_with_dry_run "${FLAGS_dryrun}" "git commit -s -S -m 'release-${VERSION}'" || return 1
exec_with_dry_run "${FLAGS_dryrun}" "git tag '${VERSION}' -s -m 'Release ${VERSION} ${NAME}'" || return 1 exec_with_dry_run "${FLAGS_dryrun}" "git tag '${VERSION}' -s -m 'Release ${VERSION} ${NAME}'" || return 1