|
|
@ -85,8 +85,8 @@ jobs:
|
|
|
|
version: latest
|
|
|
|
version: latest
|
|
|
|
driver-opts: image=moby/buildkit:master
|
|
|
|
driver-opts: image=moby/buildkit:master
|
|
|
|
|
|
|
|
|
|
|
|
# master always builds :latest
|
|
|
|
# master branch -> :dev container tag
|
|
|
|
- name: Build and push :latest
|
|
|
|
- name: Build and push :dev
|
|
|
|
id: docker_build
|
|
|
|
id: docker_build
|
|
|
|
if: ${{ github.ref }} == "refs/heads/master"
|
|
|
|
if: ${{ github.ref }} == "refs/heads/master"
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
@ -95,12 +95,12 @@ jobs:
|
|
|
|
file: ./Dockerfile
|
|
|
|
file: ./Dockerfile
|
|
|
|
push: true
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
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
|
|
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
|
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache
|
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache
|
|
|
|
cache-to: type=local,dest=/tmp/.buildx-cache
|
|
|
|
cache-to: type=local,dest=/tmp/.buildx-cache
|
|
|
|
|
|
|
|
|
|
|
|
# A new tagged release is required, which builds :tag
|
|
|
|
# A new tagged release is required, which builds :tag and :latest
|
|
|
|
- name: Build and push :tag
|
|
|
|
- name: Build and push :tag
|
|
|
|
id: docker_build_tag_release
|
|
|
|
id: docker_build_tag_release
|
|
|
|
if: github.event_name == 'release' && startsWith(github.event.release.tag_name, '0.')
|
|
|
|
if: github.event_name == 'release' && startsWith(github.event.release.tag_name, '0.')
|
|
|
@ -110,7 +110,10 @@ jobs:
|
|
|
|
file: ./Dockerfile
|
|
|
|
file: ./Dockerfile
|
|
|
|
push: true
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
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
|
|
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
|
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache
|
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache
|
|
|
|
cache-to: type=local,dest=/tmp/.buildx-cache
|
|
|
|
cache-to: type=local,dest=/tmp/.buildx-cache
|
|
|
@ -125,5 +128,3 @@ jobs:
|
|
|
|
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
|
|
|
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
|
|
|
restore-keys: |
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-buildx-
|
|
|
|
${{ runner.os }}-buildx-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|