From d1f73ef4f8f575e6cb4a4e77fc1bcec81505576d Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Wed, 15 Jun 2022 13:45:40 +0200 Subject: [PATCH] Re #695 - :latest should be :latest stable release according to a new release, and also the :0.xx.xx tag for the release - :dev can be what ever is going on in `master` --- .github/workflows/containers.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml index 365c69f3..75a7c989 100644 --- a/.github/workflows/containers.yml +++ b/.github/workflows/containers.yml @@ -86,7 +86,7 @@ jobs: driver-opts: image=moby/buildkit:master # master always builds :latest - - name: Build and push :latest + - name: Build and push :dev id: docker_build if: ${{ github.ref }} == "refs/heads/master" uses: docker/build-push-action@v2 @@ -95,7 +95,7 @@ jobs: file: ./Dockerfile push: true tags: | - ${{ secrets.DOCKER_HUB_USERNAME }}/changedetection.io:latest,ghcr.io/${{ github.repository }}:latest + ${{ secrets.DOCKER_HUB_USERNAME }}/changedetection.io:dev,ghcr.io/${{ github.repository }}:dev platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7 cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache @@ -110,7 +110,10 @@ jobs: file: ./Dockerfile push: true tags: | - ${{ secrets.DOCKER_HUB_USERNAME }}/changedetection.io:${{ github.event.release.tag_name }},ghcr.io/dgtlmoon/changedetection.io:${{ github.event.release.tag_name }} + ${{ secrets.DOCKER_HUB_USERNAME }}/changedetection.io:${{ github.event.release.tag_name }} + ghcr.io/dgtlmoon/changedetection.io:${{ github.event.release.tag_name }} + ${{ secrets.DOCKER_HUB_USERNAME }}/changedetection.io:latest + ghcr.io/dgtlmoon/changedetection.io:latest platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7 cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache @@ -125,5 +128,3 @@ jobs: key: ${{ runner.os }}-buildx-${{ github.sha }} restore-keys: | ${{ runner.os }}-buildx- - -