2021-10-22 00:13:40 +00:00
|
|
|
name: 'Citra Rooms Docker Image CI'
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "*" ]
|
|
|
|
tags: [ "*" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
2021-12-04 08:34:36 +00:00
|
|
|
workflow_dispatch:
|
2021-12-27 01:10:00 +00:00
|
|
|
inputs: {}
|
2021-12-04 08:34:36 +00:00
|
|
|
schedule:
|
|
|
|
- cron: '0 7 * * 0'
|
2021-10-22 00:13:40 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-08-23 17:37:14 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-10-22 00:13:40 +00:00
|
|
|
- name: Set up QEMU
|
2023-08-23 17:37:14 +00:00
|
|
|
uses: docker/setup-qemu-action@v2
|
2021-10-22 00:13:40 +00:00
|
|
|
- name: Set up Docker BuildX
|
2023-08-23 17:37:14 +00:00
|
|
|
uses: docker/setup-buildx-action@v2
|
2021-10-22 00:13:40 +00:00
|
|
|
- name: Login to DockerHub
|
2023-08-23 17:37:14 +00:00
|
|
|
uses: docker/login-action@v2
|
2021-10-22 00:13:40 +00:00
|
|
|
if: (github.ref == 'refs/heads/master') && (github.repository == 'citra-emu/citra-multiplayer-dedicated')
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Build Image
|
2023-08-23 17:37:14 +00:00
|
|
|
uses: docker/build-push-action@v4
|
2021-10-22 00:13:40 +00:00
|
|
|
with:
|
2021-12-30 02:03:51 +00:00
|
|
|
platforms: linux/amd64,linux/arm64
|
2021-10-22 00:13:40 +00:00
|
|
|
push: ${{ (github.ref == 'refs/heads/master') && (github.repository == 'citra-emu/citra-multiplayer-dedicated') }}
|
|
|
|
tags: citraemu/citra-multiplayer-dedicated:latest
|