Fixed docker build for nightly ghcr

This commit is contained in:
frikky
2022-07-22 01:33:50 +02:00
parent baa72498d2
commit 193f6b1f08
+18 -22
View File
@@ -41,28 +41,24 @@ 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:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# Use below configuration for ghcr.io
# with: # with:
# registry: ghcr.io # username: ${{ secrets.DOCKERHUB_USERNAME }}
# username: ${{ github.repository_owner }} # password: ${{ secrets.DOCKERHUB_TOKEN }}
# password: ${{ secrets.CR_PAT }}
- name: Dockerhub Build and push #- name: Dockerhub Build and push
id: docker_build_dockerhub # id: docker_build_dockerhub
uses: docker/build-push-action@v2 # uses: docker/build-push-action@v2
env: # env:
BUILDX_NO_DEFAULT_LOAD: true # BUILDX_NO_DEFAULT_LOAD: true
with: # with:
context: ${{ matrix.path }}/ # context: ${{ matrix.path }}/
file: ${{ matrix.path }}/Dockerfile # file: ${{ matrix.path }}/Dockerfile
platforms: linux/amd64,linux/arm64 # platforms: linux/amd64,linux/arm64
#,linux/386 - no node image I guess? # #,linux/386 - no node image I guess?
push: true # push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ matrix.app }}:${{ matrix.version }} # tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ matrix.app }}:${{ matrix.version }}
- name: Login to Ghcr - name: Login to Ghcr
uses: docker/login-action@v2 uses: docker/login-action@v2
@@ -81,7 +77,7 @@ jobs:
file: ${{ matrix.path }}/Dockerfile file: ${{ matrix.path }}/Dockerfile
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
push: true push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ matrix.app }}:${{ matrix.version }} tags: frikky/shuffle-${{ matrix.app }}:nightly
- name: Image digest - name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }} run: echo ${{ steps.docker_build.outputs.digest }}