diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 3605406..390b64e 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -3,8 +3,7 @@ name: Build and Push Docker Image on: push: branches: - - main - + - "v*" jobs: build: runs-on: ubuntu-latest @@ -13,8 +12,10 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + - name: Extract build args + run: | + echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV + - name: Log in to Docker Hub uses: docker/login-action@v3