mirror of
https://github.com/yuzu-emu/build-environments
synced 2024-11-22 21:23:35 +00:00
CI: switch to use GitHub Actions
This commit is contained in:
parent
b237f34101
commit
bce37778c0
1 changed files with 30 additions and 0 deletions
30
.github/workflows/ci.yml
vendored
Normal file
30
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
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-flatpak", "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: citraemu/build-environments:${{ matrix.image }}
|
Loading…
Reference in a new issue