Upgrading the docker CI

This commit is contained in:
Zoe Roux 2021-04-18 22:13:38 +02:00 committed by GitHub
parent 4d0cc0afc2
commit 2dda9befec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,13 +8,28 @@ jobs:
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@v1
with:
username: ${{github.actor}}
submodules: recursive
- name: Docker meta
id: meta
uses: crazy-max/ghaction-docker-meta@v2
with:
images: ghcr.io/${{github.repository_owner}}/Kyoo
tags: type=sha,prefix=
- 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}}
registry: docker.pkg.github.com
repository: AnonymusRaccoon/Kyoo/kyoo
tag_with_sha: true
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
push: ${{github.ref == 'refs/heads/master'}}
tags: ${{steps.meta.outputs.tags}}