Fixed docker build for nightly ghcr

This commit is contained in:
frikky
2022-07-22 01:33:50 +02:00
parent baa72498d2
commit 193f6b1f08
+19 -23
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: # with:
username: ${{ secrets.DOCKERHUB_USERNAME }} # username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} # password: ${{ secrets.DOCKERHUB_TOKEN }}
# Use below configuration for ghcr.io
# with: #- name: Dockerhub Build and push
# registry: ghcr.io # id: docker_build_dockerhub
# username: ${{ github.repository_owner }} # uses: docker/build-push-action@v2
# password: ${{ secrets.CR_PAT }} # env:
- name: Dockerhub Build and push # BUILDX_NO_DEFAULT_LOAD: true
id: docker_build_dockerhub # with:
uses: docker/build-push-action@v2 # context: ${{ matrix.path }}/
env: # file: ${{ matrix.path }}/Dockerfile
BUILDX_NO_DEFAULT_LOAD: true # platforms: linux/amd64,linux/arm64
with: # #,linux/386 - no node image I guess?
context: ${{ matrix.path }}/ # push: true
file: ${{ matrix.path }}/Dockerfile # tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ matrix.app }}:${{ matrix.version }}
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 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 }}