Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

ci: tag docker images with semver (#496)

Marc Klingen48b59d96fb1b
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml
index 007c7020d8..5309e6a8d1 100644
--- a/.github/workflows/pipeline.yml
+++ b/.github/workflows/pipeline.yml
@@ -5,6 +5,8 @@ on:
push:
branches:
- "main"
+ tags:
+ - "v*"
pull_request:
branches:
- "main"
@@ -104,7 +106,7 @@ jobs:
push-docker-image:
needs: all-ci-passed
- if: github.ref == 'refs/heads/main' && github.event_name == 'push'
+ if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
runs-on: ubuntu-latest
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres
@@ -143,7 +145,8 @@ jobs:
type=ref,event=branch
type=ref,event=pr
type=sha
- type=raw,value=latest
+ type=semver,pattern={{version}}
+ type=semver,pattern={{major}}.{{minor}}
- name: Build and push Docker image
uses: docker/build-push-action@v4