pull/244/head
dgtlmoon 2021-10-05 10:47:50 +02:00
rodzic e805d6ebe3
commit dbd5cf117a
1 zmienionych plików z 10 dodań i 3 usunięć

Wyświetl plik

@ -1,4 +1,4 @@
name: Test, build and push to Docker Hub (master/latest) name: Build and push containers
on: on:
workflow_run: workflow_run:
@ -37,7 +37,14 @@ jobs:
image: tonistiigi/binfmt:latest image: tonistiigi/binfmt:latest
platforms: all platforms: all
- name: Login to Docker Hub - name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to Docker Hub Container Registry
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:
username: ${{ secrets.DOCKER_HUB_USERNAME }} username: ${{ secrets.DOCKER_HUB_USERNAME }}
@ -76,7 +83,7 @@ jobs:
push: true push: true
tags: | tags: |
${{ secrets.DOCKER_HUB_USERNAME }}/changedetection.io:${{ steps.tagName.outputs.tag }} ${{ secrets.DOCKER_HUB_USERNAME }}/changedetection.io:${{ steps.tagName.outputs.tag }}
ghcr.io/dgtlmoon/changedetection.io:${{ steps.tagName.outputs.tag }} ghcr.io/dgtlmoon/changedetection.io
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