mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
32 lines
874 B
YAML
32 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
|