Add semver-cli and devcontainers
This commit is contained in:
18
.devcontainer/devcontainer.json
Normal file
18
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"features": {
|
||||||
|
"ghcr.io/devcontainers-extra/features/apt-get-packages:1": {
|
||||||
|
"version": "latest",
|
||||||
|
"packages": "shellcheck"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"postCreateCommand": "bash scripts/devcontainer_postCreateCommand.sh",
|
||||||
|
"customizations": {
|
||||||
|
"vscode": {
|
||||||
|
"extensions": [
|
||||||
|
"rogalmic.bash-debug",
|
||||||
|
"timonwong.shellcheck",
|
||||||
|
"mads-hartmann.bash-ide-vscode"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
### Added
|
### Added
|
||||||
- Debug scripts by setting `TRACE=1`.
|
- Debug scripts by setting `TRACE=1`.
|
||||||
|
- Add semver-cli for git tagging.
|
||||||
### Changed
|
### Changed
|
||||||
- Warn on certain unset envvars instead of error-exit.
|
- Warn on certain unset envvars instead of error-exit.
|
||||||
|
|
||||||
|
|||||||
14
README.md
14
README.md
@@ -593,13 +593,13 @@ $ tail -f /tmp/restic-automatic-backup-scheduler.log # or follow output like thi
|
|||||||
```
|
```
|
||||||
|
|
||||||
# Releasing
|
# Releasing
|
||||||
To make a new release:
|
1. Create a new version of this project by using [semver-cli](https://github.com/maykonlsf/semver-cli).
|
||||||
1. Create a new tag:
|
```shell
|
||||||
```console
|
vi CHANGELOG.md
|
||||||
$ vi CHANGELOG.md && git commit -am "Update CHANGELOG.md"
|
semver up minor
|
||||||
$ git tag vX.Y.Z
|
ver=$(semver get release)
|
||||||
$ git push && git push --tags
|
git commit -am "Bump version to $ver" && git tag $ver && git push --atomic origin main $ver
|
||||||
```
|
```
|
||||||
1. Update version in the AUR [PKGBUILD](https://aur.archlinux.org/packages/restic-automatic-backup-scheduler/)
|
1. Update version in the AUR [PKGBUILD](https://aur.archlinux.org/packages/restic-automatic-backup-scheduler/)
|
||||||
1. Update version in the Homebrew Formulas (see the repo README):
|
1. Update version in the Homebrew Formulas (see the repo README):
|
||||||
* [restic-automatic-backup-scheduler](https://github.com/erikw/homebrew-tap/blob/main/Formula/restic-automatic-backup-scheduler.rb)
|
* [restic-automatic-backup-scheduler](https://github.com/erikw/homebrew-tap/blob/main/Formula/restic-automatic-backup-scheduler.rb)
|
||||||
|
|||||||
8
scripts/devcontainer_postCreateCommand.sh
Executable file
8
scripts/devcontainer_postCreateCommand.sh
Executable file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Devcontainer postCreateCommand.
|
||||||
|
# Install dependencies for running this project in GitHub Codespaces.
|
||||||
|
|
||||||
|
set -eux
|
||||||
|
|
||||||
|
# For git version tagging:
|
||||||
|
go install github.com/maykonlsf/semver-cli/cmd/semver@latest
|
||||||
Reference in New Issue
Block a user