build with nightly on dockerhub, not ghcr

This commit is contained in:
frikky
2022-07-22 02:34:10 +02:00
parent 40748a175f
commit 32a0508a12
3 changed files with 35 additions and 33 deletions
+26 -26
View File
@@ -41,34 +41,14 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
#- name: Login to DockerHub
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_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 }}/${{ matrix.app }}:${{ matrix.version }}
- name: Login to Ghcr
- name: Login to DockerHub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: frikky
password: ${{ secrets.GHCR_PW }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Ghcr Build and push
id: docker_build
- name: Dockerhub Build and push
id: docker_build_dockerhub
uses: docker/build-push-action@v2
env:
BUILDX_NO_DEFAULT_LOAD: true
@@ -76,8 +56,28 @@ jobs:
context: ${{ matrix.path }}/
file: ${{ matrix.path }}/Dockerfile
platforms: linux/amd64,linux/arm64
#,linux/386 - no node image I guess?
push: true
tags: frikky/shuffle-${{ matrix.app }}:nightly
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ matrix.app }}:nightly
#- name: Login to Ghcr
# uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: frikky
# password: ${{ secrets.GHCR_PW }}
#- name: Ghcr Build and push
# id: docker_build
# 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
# push: true
# tags: frikky/shuffle-${{ matrix.app }}:nightly
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}