Test multi-registry push
This commit is contained in:
@@ -41,11 +41,11 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
# name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
# uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
# with:
|
with:
|
||||||
# username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
# password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Login to Ghcr
|
- name: Login to Ghcr
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
@@ -54,22 +54,9 @@ jobs:
|
|||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
#- name: Dockerhub Build and push
|
|
||||||
# id: docker_build_dockerhub
|
|
||||||
# uses: docker/build-push-action@v2
|
|
||||||
# env:
|
|
||||||
# BUILDX_NO_DEFAULT_LOAD: true
|
|
||||||
# with:
|
|
||||||
# context: ${{ matrix.path }}/
|
|
||||||
# file: ${{ matrix.path }}/Dockerfile
|
|
||||||
# platforms: linux/amd64,linux/arm64
|
|
||||||
# #,linux/386 - no node image I guess?
|
|
||||||
# push: true
|
|
||||||
# tags: ${{ secrets.DOCKERHUB_USERNAME }}/shuffle-${{ matrix.app }}:nightly
|
|
||||||
|
|
||||||
- name: Ghcr Build and push
|
- name: Ghcr Build and push
|
||||||
id: docker_build
|
id: docker_build
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v3
|
||||||
env:
|
env:
|
||||||
BUILDX_NO_DEFAULT_LOAD: true
|
BUILDX_NO_DEFAULT_LOAD: true
|
||||||
with:
|
with:
|
||||||
@@ -77,7 +64,9 @@ jobs:
|
|||||||
file: ${{ matrix.path }}/Dockerfile
|
file: ${{ matrix.path }}/Dockerfile
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: frikky/shuffle-${{ matrix.app }}:nightly
|
tags: |
|
||||||
|
ghcr.io/frikky/shuffle-${{ matrix.app }}:nightly
|
||||||
|
${{ secrets.DOCKERHUB_USERNAME }}/shuffle-${{ matrix.app }}:nightly
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||||
|
|||||||
Reference in New Issue
Block a user