diff --git a/.github/workflows/docker-build-on-push.yaml b/.github/workflows/docker-build-on-push.yaml index 6879ad03e..a5f1d9b3b 100644 --- a/.github/workflows/docker-build-on-push.yaml +++ b/.github/workflows/docker-build-on-push.yaml @@ -52,26 +52,25 @@ jobs: username: ${{ secrets.DOCKER_REGISTRY_USER }} password: ${{ secrets.DOCKER_REGISTRY_TOKEN }} - - name: Build and push + - name: Build and push (classic) uses: docker/build-push-action@v2 with: context: ./ - file: ./docker/Dockerfile + file: ./docker/classic/Dockerfile platforms: ${{ env.DOCKER_PLATFORMS }} push: ${{ env.IMAGE_TAG_BASE != '' }} - tags: ${{ secrets.DOCKER_IMAGE_NAME }}:${{ env.IMAGE_TAG_BASE }} + tags: ${{ secrets.DOCKER_IMAGE_NAME }}:${{ env.IMAGE_TAG_BASE }}-classic build-args: | SHAIRPORT_SYNC_BRANCH=${{ env.SHAIRPORT_SYNC_BRANCH }} - NQPTP_BRANCH=${{ env.NQPTP_BRANCH }} - - - name: Build and push (classic) + + - name: Build and push uses: docker/build-push-action@v2 with: context: ./ - file: ./docker/classic/Dockerfile + file: ./docker/Dockerfile platforms: ${{ env.DOCKER_PLATFORMS }} push: ${{ env.IMAGE_TAG_BASE != '' }} - tags: ${{ secrets.DOCKER_IMAGE_NAME }}:${{ env.IMAGE_TAG_BASE }}-classic + tags: ${{ secrets.DOCKER_IMAGE_NAME }}:${{ env.IMAGE_TAG_BASE }} build-args: | SHAIRPORT_SYNC_BRANCH=${{ env.SHAIRPORT_SYNC_BRANCH }} - + NQPTP_BRANCH=${{ env.NQPTP_BRANCH }} diff --git a/.github/workflows/docker-build-on-tag.yaml b/.github/workflows/docker-build-on-tag.yaml index 5f27fa3b6..ef2c31482 100644 --- a/.github/workflows/docker-build-on-tag.yaml +++ b/.github/workflows/docker-build-on-tag.yaml @@ -58,30 +58,29 @@ jobs: username: ${{ secrets.DOCKER_REGISTRY_USER }} password: ${{ secrets.DOCKER_REGISTRY_TOKEN }} - - name: Build and push + - name: Build and push (classic) uses: docker/build-push-action@v2 with: context: ./ - file: ./docker/Dockerfile + file: ./docker/classic/Dockerfile platforms: ${{ env.DOCKER_PLATFORMS }} push: true tags: | - ${{ secrets.DOCKER_IMAGE_NAME }}:${{ env.GIT_TAG }} - ${{ env.LATEST_TAG == 'true' && format('{0}:latest', secrets.DOCKER_IMAGE_NAME) || '' }} + ${{ secrets.DOCKER_IMAGE_NAME }}:${{ env.GIT_TAG }}-classic + ${{ env.LATEST_TAG == 'true' && format('{0}:latest-classic', secrets.DOCKER_IMAGE_NAME) || '' }} build-args: | SHAIRPORT_SYNC_BRANCH=${{ env.SHAIRPORT_SYNC_BRANCH }} - NQPTP_BRANCH=${{ env.NQPTP_BRANCH }} - - - name: Build and push (classic) + + - name: Build and push uses: docker/build-push-action@v2 with: context: ./ - file: ./docker/classic/Dockerfile + file: ./docker/Dockerfile platforms: ${{ env.DOCKER_PLATFORMS }} push: true tags: | - ${{ secrets.DOCKER_IMAGE_NAME }}:${{ env.GIT_TAG }}-classic - ${{ env.LATEST_TAG == 'true' && format('{0}:latest-classic', secrets.DOCKER_IMAGE_NAME) || '' }} + ${{ secrets.DOCKER_IMAGE_NAME }}:${{ env.GIT_TAG }} + ${{ env.LATEST_TAG == 'true' && format('{0}:latest', secrets.DOCKER_IMAGE_NAME) || '' }} build-args: | SHAIRPORT_SYNC_BRANCH=${{ env.SHAIRPORT_SYNC_BRANCH }} - + NQPTP_BRANCH=${{ env.NQPTP_BRANCH }}