yay/.github/workflows/builder-image.yml
2020-09-29 10:32:29 +02:00

33 lines
874 B
YAML

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
with:
platforms: linux/amd64, linux/arm/v6,linux/arm/v7,linux/arm64
file: ci.Dockerfile
push: true
tags: jguer/yay-builder:latest