build-environments/.github/workflows/ci.yml
liushuyu 3262fbd485
linux-flatpak: drop ...
... in flavor of FlatHub official build
2021-12-23 00:07:04 -07:00

30 lines
962 B
YAML

name: 'Yuzu Docker Image CI'
on:
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 }}