12345678910111213141516171819202122232425262728293031323334353637383940 |
- name: Builder image
- on:
- schedule:
- - cron: "0 3 * * 1"
- push:
- paths:
- - "ci.Dockerfile"
- - "**/builder-image.yml"
- jobs:
- build:
- name: Push builder image to Docker Hub
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- - name: Set up QEMU
- uses: docker/setup-qemu-action@v1
- - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v1
- - name: Login to DockerHub
- uses: docker/login-action@v1
- with:
- username: ${{ secrets.DOCKER_USERNAME }}
- password: ${{ secrets.DOCKER_PASSWORD }}
- - name: Push to Docker Hub
- uses: docker/build-push-action@v2
- env:
- DOCKER_BUILDKIT: 0
- COMPOSE_DOCKER_CLI_BUILD: 0
- with:
- platforms: linux/amd64,linux/arm/v7,linux/arm64
- file: ci.Dockerfile
- push: true
- tags: jguer/yay-builder:latest
- secrets: |
- DOCKER_BUILDKIT=0
- COMPOSE_DOCKER_CLI_BUILD=0
- cache-from: type=registry,ref=jguer/yay-builder:latest
- cache-to: type=inline
|