mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-01-20 02:45:57 -05:00
23 lines
692 B
YAML
23 lines
692 B
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
|
|
- name: Checkout submodules
|
|
run: git submodule update --init --recursive
|
|
- name: Push to GitHub Packages
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
username: ${{github.actor}}
|
|
password: ${{secrets.GITHUB_TOKEN}}
|
|
registry: docker.pkg.github.com
|
|
repository: AnonymusRaccoon/Kyoo/kyoo
|
|
tag_with_sha: true
|
|
- name: Docker build
|
|
run: docker build . -t kyoo:$(date +%s)
|