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
|
2021-03-13 12:15:26 +01:00
|
|
|
runs-on: ubuntu-20.04
|
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
|
|
|
|
with:
|
|
|
|
platforms: linux/amd64, linux/arm/v6,linux/arm/v7,linux/arm64
|
|
|
|
file: ci.Dockerfile
|
|
|
|
push: true
|
|
|
|
tags: jguer/yay-builder:latest
|