Add release process
This commit is contained in:
parent
05a184fcf7
commit
07725c99b4
@ -3,9 +3,11 @@ name: Docker Build and Publish
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
tags: [ 'v*' ]
|
tags: [ 'v*.*.*' ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -20,11 +22,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
images: git.dws.rip/${{ github.repository }}
|
images: git.dws.rip/${{ github.repository }}
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
|
||||||
|
type=semver,pattern={{version}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||||
|
type=semver,pattern={{major}}.{{minor}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||||
|
type=sha,format=long
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
type=semver,pattern={{version}}
|
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
|
||||||
type=sha
|
|
||||||
|
|
||||||
- name: Login to Gitea Container Registry
|
- name: Login to Gitea Container Registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
|
@ -115,3 +115,11 @@ spectra/
|
|||||||
- `FLASK_ENV`: Set to 'production' in production
|
- `FLASK_ENV`: Set to 'production' in production
|
||||||
- `WORKERS`: Number of Gunicorn workers (default: 4)
|
- `WORKERS`: Number of Gunicorn workers (default: 4)
|
||||||
- `PORT`: Override default port (default: 5000)
|
- `PORT`: Override default port (default: 5000)
|
||||||
|
|
||||||
|
## Release Process
|
||||||
|
|
||||||
|
To create a release:
|
||||||
|
- Create and push a tag: `git tag v1.0.0 && git push origin v1.0.0`
|
||||||
|
- Create a release in Gitea UI using that tag
|
||||||
|
- The workflow will build and push the Docker image with appropriate version tags
|
||||||
|
- The Docker image will be available at: `git.dws.rip/your-repo/image:v1.0.0`
|
||||||
|
Loading…
Reference in New Issue
Block a user