From aa01de6642c2e622ef0b8f3b75cc7a411e3fa681 Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Wed, 26 Oct 2022 18:15:20 +0100 Subject: [PATCH] Change order so that the non-classic version is the newest and shows up forst in the list of tags. --- .github/workflows/docker-build-on-push.yaml | 17 ++++++++--------- .github/workflows/docker-build-on-tag.yaml | 21 ++++++++++----------- 2 files changed, 18 insertions(+), 20 deletions(-) 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 }}