yay/.github/workflows/builder-image.yml

41 lines
1.1 KiB
YAML
Raw Normal View History

2020-09-08 00:02:28 +02:00
name: Builder image
on:
schedule:
- cron: "0 3 * * 1"
push:
paths:
- "ci.Dockerfile"
- "**/builder-image.yml"
jobs:
build:
2020-09-29 09:43:20 +02:00
name: Push builder image to Docker Hub
runs-on: ubuntu-latest
2020-09-08 00:02:28 +02:00
steps:
2020-09-29 09:43:20 +02:00
- name: Checkout
2020-09-08 00:02:28 +02:00
uses: actions/checkout@v2
2020-09-29 09:43:20 +02:00
- 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
2020-09-08 00:02:28 +02:00
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
2020-09-29 09:43:20 +02:00
- name: Push to Docker Hub
uses: docker/build-push-action@v2
env:
DOCKER_BUILDKIT: 0
COMPOSE_DOCKER_CLI_BUILD: 0
2020-09-29 09:43:20 +02:00
with:
2022-08-05 23:13:46 +02:00
platforms: linux/amd64,linux/arm/v7,linux/arm64
2020-09-29 09:43:20 +02:00
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