mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Adding a docker CI
This commit is contained in:
parent
61656704b2
commit
3af620380c
22
.github/workflows/docker.yml
vendored
Normal file
22
.github/workflows/docker.yml
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
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)
|
Loading…
x
Reference in New Issue
Block a user