mirror of
https://github.com/yuzu-emu/build-environments.git
synced 2024-11-25 17:35:43 +01:00
7e6b2ed26b
... a manual trigger is added as well, just in case
35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
name: 'Yuzu Docker Image CI'
|
|
on:
|
|
workflow_dispatch:
|
|
inputs: {}
|
|
schedule:
|
|
- cron: '0 7 * * 0'
|
|
push:
|
|
branches: ["master"]
|
|
pull_request:
|
|
branches: ["master"]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
image: ["linux-clang-format", "linux-fresh", "linux-mingw", "linux-transifex"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: docker/setup-buildx-action@v1
|
|
name: Setup Docker BuildX system
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1
|
|
if: (github.ref == 'refs/heads/master') && (github.repository == 'yuzu-emu/build-environments')
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- uses: docker/build-push-action@v2
|
|
name: Build image
|
|
with:
|
|
push: ${{ (github.ref == 'refs/heads/master') && (github.repository == 'yuzu-emu/build-environments') }}
|
|
context: ${{ matrix.image }}
|
|
tags: yuzuemu/build-environments:${{ matrix.image }}
|