mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-12-25 06:17:27 -05:00
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
name: Docker
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
- name: Docker meta
|
|
id: meta
|
|
uses: crazy-max/ghaction-docker-meta@v2
|
|
with:
|
|
images: ghcr.io/${{github.repository_owner}}/Kyoo
|
|
tags: |
|
|
type=ref,event=tag
|
|
type=ref,event=branch
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{github.repository_owner}}
|
|
password: ${{secrets.GITHUB_TOKEN}}
|
|
- name: Build and push
|
|
id: docker_build
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: ${{steps.meta.outputs.tags}}
|