Skip to content

Commit 51d4a08

Browse files
committed
chore: prepare for release
1 parent 953ec5a commit 51d4a08

File tree

4 files changed

+197
-13
lines changed

4 files changed

+197
-13
lines changed

.dockerignore

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# Python bytecode and cache
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
*.so
6+
.Python
7+
.pytest_cache/
8+
.coverage
9+
htmlcov/
10+
.tox/
11+
.nox/
12+
.hypothesis/
13+
.coverage.*
14+
coverage.xml
15+
*.cover
16+
17+
# Virtual environments
18+
venv/
19+
env/
20+
ENV/
21+
virtualenv/
22+
.env
23+
.venv
24+
env.bak/
25+
venv.bak/
26+
27+
# Distribution / packaging
28+
dist/
29+
build/
30+
*.egg-info/
31+
*.egg
32+
MANIFEST
33+
.installed.cfg
34+
eggs/
35+
develop-eggs/
36+
downloads/
37+
lib/
38+
lib64/
39+
parts/
40+
sdist/
41+
var/
42+
wheels/
43+
44+
# Version control
45+
.git
46+
.gitignore
47+
.gitattributes
48+
.github/
49+
50+
# IDE and editors
51+
.idea/
52+
.vscode/
53+
*.swp
54+
*.swo
55+
*~
56+
.DS_Store
57+
*.sublime-*
58+
.project
59+
.pydevproject
60+
.settings
61+
.spyderproject
62+
.spyproject
63+
.ropeproject
64+
65+
# Logs
66+
logs/
67+
*.log
68+
pip-log.txt
69+
pip-delete-this-directory.txt
70+
71+
# Docker specific
72+
Dockerfile*
73+
docker-compose*
74+
.dockerignore
75+
76+
# Documentation
77+
docs/
78+
*.md
79+
README*
80+
LICENSE
81+
AUTHORS
82+
83+
# Project specific
84+
.pytest_cache/
85+
.mypy_cache/
86+
.ruff_cache/
87+
.ipynb_checkpoints/
88+
notebooks/
89+
tests/
90+
.flake8
91+
setup.cfg
92+
pyproject.toml
93+
requirements-dev.txt
94+
tox.ini
95+
96+
# Keep essential files
97+
!requirements.txt
98+
!setup.py
99+
!pyproject.toml

.releaserc

Lines changed: 84 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,99 @@
33
"main"
44
],
55
"plugins": [
6-
"@semantic-release/commit-analyzer",
7-
"@semantic-release/release-notes-generator",
86
[
9-
"@semantic-release/changelog",
7+
"@semantic-release/commit-analyzer",
108
{
11-
"changelogFile": "CHANGELOG.md"
9+
"preset": "angular",
10+
"releaseRules": [
11+
{
12+
"type": "feat",
13+
"release": "minor"
14+
},
15+
{
16+
"type": "fix",
17+
"release": "patch"
18+
},
19+
{
20+
"type": "refactor",
21+
"release": "patch"
22+
},
23+
{
24+
"type": "perf",
25+
"release": "patch"
26+
},
27+
{
28+
"type": "build",
29+
"release": "patch"
30+
},
31+
{
32+
"type": "ci",
33+
"release": "patch"
34+
},
35+
{
36+
"type": "chore",
37+
"release": "patch"
38+
},
39+
{
40+
"type": "docs",
41+
"release": "patch"
42+
},
43+
{
44+
"type": "style",
45+
"release": "patch"
46+
}
47+
]
1248
}
1349
],
50+
"@semantic-release/release-notes-generator",
1451
[
15-
"@semantic-release/git",
52+
"@semantic-release/commit-analyzer",
1653
{
17-
"assets": [
18-
"CHANGELOG.md"
19-
],
20-
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
54+
"preset": "angular",
55+
"releaseRules": [
56+
{
57+
"type": "feat",
58+
"release": "minor"
59+
},
60+
{
61+
"type": "fix",
62+
"release": "patch"
63+
},
64+
{
65+
"type": "refactor",
66+
"release": "patch"
67+
},
68+
{
69+
"type": "perf",
70+
"release": "patch"
71+
},
72+
{
73+
"type": "build",
74+
"release": "patch"
75+
},
76+
{
77+
"type": "ci",
78+
"release": "patch"
79+
},
80+
{
81+
"type": "chore",
82+
"release": "patch"
83+
},
84+
{
85+
"type": "docs",
86+
"release": "patch"
87+
},
88+
{
89+
"type": "style",
90+
"release": "patch"
91+
}
92+
]
2193
}
22-
]
94+
],
95+
"@semantic-release/release-notes-generator"
2396
],
2497
"prepare": [
2598
"@semantic-release/changelog",
26-
"./publish-docker.js",
27-
"@semantic-release/git"
99+
"./scripts/publish-docker.js"
28100
]
29101
}

CHANGELOG.md

Whitespace-only changes.

Makefile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,25 @@ build-test:
2020

2121
docker build --build-arg NGINX_CONFIG="local-nginx.conf" -t $(VIS_DOCKER_IMAGE_NAME_PREFIX)/$(VIS_DOCKER_IMAGE_NAME) -f vis.dockerfile .
2222

23+
# Validate semantic version format
24+
validate-semver-%:
25+
@echo "Validating version format: $*"
26+
@if ! echo "$*" | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$$' > /dev/null; then \
27+
echo "Error: Version must be in semantic version format (e.g., 1.2.3)"; \
28+
exit 1; \
29+
fi
30+
2331
.PHONY: build
2432
build:
2533
@echo "Create docker container for $(VIS_DOCKER_IMAGE_NAME)"
26-
2734
docker build -t $(VIS_DOCKER_IMAGE_NAME_PREFIX)/$(VIS_DOCKER_IMAGE_NAME) -f vis.dockerfile .
2835

36+
# Build with specific version (e.g., make build-1.2.3)
37+
build-%: validate-semver-%
38+
@echo "Create docker container for $(VIS_DOCKER_IMAGE_NAME) with version $*"
39+
docker build -t $(VIS_DOCKER_IMAGE_NAME_PREFIX)/$(VIS_DOCKER_IMAGE_NAME):$* -f vis.dockerfile .
40+
41+
2942
# The target for development
3043
.PHONY: dev
3144
dev:

0 commit comments

Comments
 (0)