Skip to content

Merge pull request #588 from Shikkanime/dev #247

Merge pull request #588 from Shikkanime/dev

Merge pull request #588 from Shikkanime/dev #247

name: Release workflow
on:
push:
branches:
- master
env:
REGISTRY_IMAGE: registry.shikkanime.fr:5000/shikkanime-core
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'corretto'
- name: Build
run: gradle clean installDist
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: registry.shikkanime.fr:5000
username: ziedelth
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build docker file
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ env.REGISTRY_IMAGE }}:latest
platforms: linux/arm64/v8
cache-from: type=registry,ref=${{ env.REGISTRY_IMAGE }}:buildcache
cache-to: type=registry,ref=${{ env.REGISTRY_IMAGE }}:buildcache