Commit ef02b40
Support semver tags in CI Docker builds
Trigger CI on tag pushes (v*) in addition to main. When building
from a git tag, push the semver version as a Docker tag alongside
:latest and :sha. Use fetch-depth: 0 so git describe sees tags.
Release flow:
git tag v1.0.1 && git push origin v1.0.1
→ CI builds with VERSION=v1.0.1
→ pushes :latest, :sha, and :v1.0.1 to Docker Hub
→ Watchtower picks up :latest on the VPS
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 47125b7 commit ef02b40
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
30 | | - | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| |||
49 | 54 | | |
50 | 55 | | |
51 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
0 commit comments