Add release pipes & CHANGELOG.md

Also add checkbox for changelog updates in MR
This commit is contained in:
Zedifus 2022-06-16 18:33:57 +01:00
parent fff186e547
commit 91de96194c
5 changed files with 54 additions and 0 deletions

View File

@ -7,6 +7,7 @@ stages:
- test - test
- prod-deployment - prod-deployment
- dev-deployment - dev-deployment
- release
variables: variables:
DOCKER_HOST: tcp://docker:2376 DOCKER_HOST: tcp://docker:2376
@ -16,6 +17,7 @@ include:
- local: .gitlab/lint.yml - local: .gitlab/lint.yml
- local: .gitlab/docker-build.yml - local: .gitlab/docker-build.yml
- local: .gitlab/windows-build.yml - local: .gitlab/windows-build.yml
- local: .gitlab/release.yml
- template: Security/Dependency-Scanning.gitlab-ci.yml - template: Security/Dependency-Scanning.gitlab-ci.yml
- template: Security/SAST.gitlab-ci.yml - template: Security/SAST.gitlab-ci.yml
- template: Security/Secret-Detection.gitlab-ci.yml - template: Security/Secret-Detection.gitlab-ci.yml

View File

@ -27,3 +27,4 @@ This checklist encourages us to confirm any changes have been analyzed to reduce
* [ ] Have you resolved any lint issues? * [ ] Have you resolved any lint issues?
* [ ] Have you assigned a reviewer? * [ ] Have you assigned a reviewer?
* [ ] Have you applied correct labels? * [ ] Have you applied correct labels?
* [ ] Have you updated CHANGELOG.md?

16
.gitlab/release.yml Normal file
View File

@ -0,0 +1,16 @@
release:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
- if: $CI_COMMIT_TAG
script:
- echo "Running release job for tag $CI_COMMIT_TAG"
release:
tag_name: $CI_COMMIT_TAG
name: Crafty $CI_COMMIT_TAG
description: ./CHANGELOG.md
assets:
links:
- name: Windows Package
url: "https://gitlab.com/some/repo/-/jobs/$(cat CI_JOB_ID.txt)/artifacts/download"
link_type: package

View File

@ -50,9 +50,11 @@ win-prod-build:
- .venv/ - .venv/
rules: rules:
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH" - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
- if: $CI_COMMIT_TAG
environment: environment:
name: production name: production
script: script:
- echo "${CI_JOB_ID}" > CI_JOB_ID.txt
- | - |
$ErrorActionPreference = "Stop" $ErrorActionPreference = "Stop"
py -m venv .venv py -m venv .venv
@ -79,5 +81,7 @@ win-prod-build:
paths: paths:
- app\ - app\
- .\crafty_commander.exe - .\crafty_commander.exe
- CI_JOB_ID.txt
expire_in: never
exclude: exclude:
- app\classes\**\* - app\classes\**\*

31
CHANGELOG.md Normal file
View File

@ -0,0 +1,31 @@
# Changelog
## [4.0.2] - 2022/06/16
### New features
None
### Bug fixes
- Fix winreg import pass on non-NT systems ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/344))
- Make the WebSocket automatically reconnect. ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/345))
- Fix an error when there are no servers ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/346))
- Use relative paths for the jarfile and logs ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/347))
- Flatten all instances of username creation or editing, usernames should be lower case.
- - ([Merge Request 1](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/342))
- - ([Merge Request 2](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/351))
- Add version inheretence & config check ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/353))
- Fix support log temp file deletion issue/hang ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/354))
## [4.0.1] - 2022/06/15
### New features
None
### Bug fixes
- Remove session.lock warning ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/338))
- Correct Dutch Spacing Issue ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/340))
- Remove no-else-* pylint exemptions and tidy code. ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/342))
- Make unRAID more readable, and flatten path to lower, to fit standard practice. ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/337))
- Fix Java Pathing issues on windows ([Commit](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/343/diffs?commit_id=cda2120579083d447db5dbeb5489822880f4cae7))