File tree Expand file tree Collapse file tree 4 files changed +197
-13
lines changed Expand file tree Collapse file tree 4 files changed +197
-13
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 3
3
"main"
4
4
],
5
5
"plugins": [
6
- "@semantic-release/commit-analyzer",
7
- "@semantic-release/release-notes-generator",
8
6
[
9
- "@semantic-release/changelog ",
7
+ "@semantic-release/commit-analyzer ",
10
8
{
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
+ ]
12
48
}
13
49
],
50
+ "@semantic-release/release-notes-generator",
14
51
[
15
- "@semantic-release/git ",
52
+ "@semantic-release/commit-analyzer ",
16
53
{
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
+ ]
21
93
}
22
- ]
94
+ ],
95
+ "@semantic-release/release-notes-generator"
23
96
],
24
97
"prepare": [
25
98
"@semantic-release/changelog",
26
- "./publish-docker.js",
27
- "@semantic-release/git"
99
+ "./scripts/publish-docker.js"
28
100
]
29
101
}
Original file line number Diff line number Diff line change @@ -20,12 +20,25 @@ build-test:
20
20
21
21
docker build --build-arg NGINX_CONFIG="local-nginx.conf" -t $(VIS_DOCKER_IMAGE_NAME_PREFIX)/$(VIS_DOCKER_IMAGE_NAME) -f vis.dockerfile .
22
22
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
+
23
31
.PHONY : build
24
32
build :
25
33
@echo " Create docker container for $( VIS_DOCKER_IMAGE_NAME) "
26
-
27
34
docker build -t $(VIS_DOCKER_IMAGE_NAME_PREFIX ) /$(VIS_DOCKER_IMAGE_NAME ) -f vis.dockerfile .
28
35
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
+
29
42
# The target for development
30
43
.PHONY : dev
31
44
dev :
You can’t perform that action at this time.
0 commit comments