This commit is contained in:
GodD6366 2022-10-12 14:48:58 +00:00
parent 5644cf89ab
commit 10269288fe

View File

@ -6,14 +6,14 @@ name: Docker
# documentation.
on:
# schedule:
# - cron: '20 0 * * *'
schedule:
- cron: '20 0 * * *'
push:
branches: [ "self" ]
branches: [ "main" ]
# Publish semver tags as releases.
# tags: [ 'v*.*.*' ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "self" ]
branches: [ "main" ]
env:
# Use docker.io for Docker Hub if empty
@ -25,7 +25,7 @@ env:
jobs:
build:
runs-on: ubuntu-latest
runs-on: self-hosted
permissions:
contents: read
packages: write
@ -100,7 +100,7 @@ jobs:
REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
# https://github.com/docker/setup-qemu-action#about
# platforms: linux/amd64,linux/arm64,linux/riscv64,linux/ppc64le,linux/s390x,linux/386,linux/mips64le,linux/mips64,linux/arm/v7,linux/arm/v6
platforms: linux/amd64
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max