Adding a docker CI

This commit is contained in:
Zoe Roux 2021-04-18 20:40:10 +02:00 committed by GitHub
parent 61656704b2
commit 3af620380c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

22
.github/workflows/docker.yml vendored Normal file
View 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)