File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,8 @@ name: Build and Push Agent Image
22
33on :
44 push :
5- branches :
6- - main
7- - feat/github-actions-example
5+ tags :
6+ - ' release-*'
87
98jobs :
109 build :
4039 - name : Set up Docker Buildx
4140 uses : docker/setup-buildx-action@v3
4241
42+ - name : Extract version from tag
43+ id : extract_version
44+ run : |
45+ # Extract version from tag (e.g., release-1.2.3 -> 1.2.3)
46+ VERSION=${GITHUB_REF#refs/tags/release-}
47+ echo "version=$VERSION" >> $GITHUB_OUTPUT
48+
4349 - name : Build and Push
4450 run : |
45- beeai build ./ --tag ghcr.io/${{ github.repository }}/my-agent:latest --no-import --multi-platform
46- docker push ghcr.io/${{ github.repository }}/my-agent:latest
51+ beeai build ./ --tag ghcr.io/${{ github.repository }}/my-agent:${{ steps.extract_version.outputs.version }} --no-import --multi-platform --push
You can’t perform that action at this time.
0 commit comments