File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 1010 build :
1111 runs-on : ubuntu-latest
1212
13+ permissions :
14+ contents : read
15+ packages : write
16+
1317 steps :
1418 - name : Checkout repository
1519 uses : actions/checkout@v4
@@ -47,12 +51,16 @@ jobs:
4751 with :
4852 images : ghcr.io/${{ github.repository }}
4953 tags : |
50- # set latest tag for default branch
54+ # Use Git tag as the primary version tag (e.g., v1.2.3 -> 1.2.3)
55+ type=semver,pattern={{version}}
56+ # Also tag main branch commit as 'latest'
5157 type=raw,value=latest,enable={{is_default_branch}}
52- # tag main branch as 'latest' and develop branch as 'develop'
58+ # Tag develop branch commit as 'develop'
59+ type=raw,value=develop,enable={{is_branch 'develop'}}
60+ # Tag other branches with their name
5361 type=ref,event=branch
54- # tag commit sha
55- type=sha
62+ # Tag commit sha as well for traceability
63+ type=sha,prefix=sha-
5664
5765 - name : Build and push Docker image
5866 uses : docker/build-push-action@v5
Original file line number Diff line number Diff line change 99from urllib .parse import urljoin
1010from waitress import serve
1111
12+ __version__ = "0.1.0"
13+
1214# Set up logging
1315LOG_LEVEL = os .getenv ('LOG_LEVEL' , 'INFO' ).upper ()
1416logging .basicConfig (level = LOG_LEVEL , format = '%(asctime)s - %(levelname)s - %(message)s' )
You can’t perform that action at this time.
0 commit comments