36 linhas
1 KiB
YAML
36 linhas
1 KiB
YAML
name: Build & Deploy container image
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * *' # everyday at midnight UTC
|
|
pull_request:
|
|
branches: master
|
|
push:
|
|
branches: master
|
|
tags: '*'
|
|
|
|
jobs:
|
|
buildx:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
base-image: [stable, edge]
|
|
destination-image: [nginx-fpm-alpine, fs, pdo, gcs]
|
|
name: ${{ matrix.destination-image }} image / ${{ matrix.base-image }} release
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
with:
|
|
platforms: linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
with:
|
|
install: true
|
|
- name: Docker Build
|
|
env:
|
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
run: ./buildx.sh ${{ github.event_name }} ${{ matrix.destination-image }} ${{ matrix.base-image }}
|