Yuzu Docker Image CI #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Yuzu Docker Image CI' | |
on: | |
workflow_dispatch: | |
inputs: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
image: ["linux-fresh"] | |
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 == 'snoandpetals/build-env-yuzu') | |
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 == 'snoandpetals/build-env-yuzu') }} | |
context: ${{ matrix.image }} | |
tags: snoandpetals/build-env-yuzu:${{ matrix.image }} |