#!/bin/sh
version=$(grep -oPm1 "(?<=<Version>)[^<]+" PoyoLang.Translator.Web/PoyoLang.Translator.Web.csproj)

dotnet.exe publish PoyoLang.Translator.Web \
    -c Release \
    -r linux-x64 \
    -p:PublishProfile=DefaultContainer \
    -p:InvariantGlobalization=true \
    -p:ContainerFamily=alpine \
    -p:ContainerRegistry=git.ilysix.fr \
    -p:ContainerRepository=Eveldee/PoyoLang \
    -p:ContainerImageTags="\"$version;latest\""