Usenet streaming with a WebDAV server and a SABnzbd-compatible API
C#
Update workflow to publish image for separate branches.
nzbdav-dev9380647baa77
diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.ymlindex e7538d9a..14e3dda6 100644--- a/.github/workflows/docker-publish.yml+++ b/.github/workflows/docker-publish.yml@@ -2,7 +2,8 @@ name: Build and Push Docker image to GHCRon:push:- branches: [ main ]+ branches:+ - '**'workflow_dispatch:jobs:@@ -30,10 +31,19 @@ jobs:username: ${{ github.actor }}password: ${{ secrets.GITHUB_TOKEN }}+ - name: Set tag name+ id: set_tag+ run: |+ if [[ "${{ github.ref_name }}" == "main" ]]; then+ echo "TAG=pre-alpha" >> $GITHUB_OUTPUT+ else+ echo "TAG=${{ github.ref_name }}" >> $GITHUB_OUTPUT+ fi+- name: Build and push Docker image (amd64 + arm64)uses: docker/build-push-action@v5with:context: .push: trueplatforms: linux/amd64,linux/arm64- tags: ghcr.io/${{ github.repository }}:pre-alpha+ tags: ghcr.io/${{ github.repository }}:${{ steps.set_tag.outputs.TAG }}\ No newline at end of file