diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index ddb47de5..18cccba9 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -2,9 +2,12 @@ name: Build and Push Docker Image on: push: - tags: + branches: + - 'main' + tags: - 'v*' + env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} @@ -40,10 +43,10 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | - type=raw,value=latest,enable={{is_default_branch}} - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - type=semver,pattern={{major}} + type=dev,value=latest,enable={{is_default_branch}} + type=semver,pattern={{version}},enable={{tag}} + type=semver,pattern={{major}}.{{minor}},enable={{tag}} + type=semver,pattern={{major}},enable={{tag}} - name: Build and push Docker Image uses: docker/build-push-action@v5