Skip to content

Commit

Permalink
Update Justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
essembeh committed Jul 24, 2024
1 parent 81bf429 commit 1e98efd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 45 deletions.
26 changes: 20 additions & 6 deletions Justfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
run:
dotenv run -- fastapi dev yourss/main.py
run:
poetry run -- dotenv run -- fastapi dev yourss/main.py

run-redis:
docker run --rm -ti -p 6379:6379 redis

test:
pytest tests/
docker run --rm -ti -p 6379:6379 redis

test pytest_args="":
poetry run -- pytest {{pytest_args}} tests/

release bump="patch":
echo "{{bump}}" | grep -E "^(major|minor|patch)$"
poetry version "{{bump}}"
VERSION=`poetry version -s` yq e '.version = strenv(VERSION)' -i charts/yourss/Chart.yaml
VERSION=`poetry version -s` yq e '.appVersion = strenv(VERSION)' -i charts/yourss/Chart.yaml
git add pyproject.toml charts/yourss/Chart.yaml
git commit --message "🔖 New release: `poetry version -s`"
git tag "`poetry version -s`"

publish:
git log -1 --pretty="%B" | grep '^🔖 New release: '
git push
git push --tags
39 changes: 0 additions & 39 deletions release.sh

This file was deleted.

0 comments on commit 1e98efd

Please sign in to comment.