Skip to content

Commit a67fd8f

Browse files
committed
Create version file and set version to 1.0.0
1 parent 20c6f96 commit a67fd8f

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/release.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ jobs:
4444
- name: Checkout repository
4545
uses: actions/checkout@v4
4646

47+
- name: Read version
48+
id: version
49+
run: |
50+
VERSION=$(cat VERSION | tr -d '[:space:]')
51+
echo "version=$VERSION" >> $GITHUB_OUTPUT
52+
echo "Using version: $VERSION"
53+
4754
- name: Set image name
4855
run: |
4956
if [ "${{ matrix.registry }}" = "docker.io" ]; then
@@ -65,10 +72,13 @@ jobs:
6572
with:
6673
images: ${{ env.FULL_IMAGE_NAME }}
6774
tags: |
75+
type=raw,value=${{ steps.version.outputs.version }},enable=${{ github.event_name == 'push' && github.ref == 'refs/heads/release' }}
76+
type=raw,value=${{ matrix.variant }}-${{ steps.version.outputs.version }},enable=${{ github.event_name == 'push' && github.ref == 'refs/heads/release' && matrix.variant != 'cpu' }}
77+
type=raw,value=latest,enable=${{ matrix.variant == 'cpu' }}
78+
type=raw,value=cuda,enable=${{ matrix.variant == 'cuda' }}
6879
type=ref,event=tag
6980
type=ref,event=branch
7081
type=semver,pattern={{version}}
71-
type=raw,value=${{ matrix.variant }},enable=${{ matrix.variant != 'cpu' }}
7282
7383
- name: Build and push Docker image
7484
id: push

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.0.0

0 commit comments

Comments
 (0)