-
Notifications
You must be signed in to change notification settings - Fork 68
/
justfile
41 lines (32 loc) · 994 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[private]
default:
@just --list
generate:
dagger call generate server export --path api
# TODO: move this to dagger?
GOWORK=off go generate ./cmd/...
go generate ./api/client/go
# tag and release a new version
release:
#!/usr/bin/env bash
set -euo pipefail
git checkout main > /dev/null 2>&1
git diff-index --quiet HEAD || (echo "Git directory is dirty" && exit 1)
version=v$(semver bump prerelease beta.. $(git describe --abbrev=0))
echo "Detected version: ${version}"
read -n 1 -p "Is that correct (y/N)? " answer
echo
case ${answer:0:1} in
y|Y )
echo "Tagging release with version ${version}"
;;
* )
echo "Aborting"
exit 1
;;
esac
git tag -m "Release ${version}" $version
git push origin $version
# update CI dependency versions
update-versions:
dagger call dev update-versions --github-token env:GITHUB_TOKEN export --path .dagger/versions.go