mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-26 19:31:05 +00:00
Only do arm build on major deploy. Fixes #393
This commit is contained in:
parent
6058e837fc
commit
4faa46ac29
1 changed files with 14 additions and 4 deletions
18
docker/dev/deploy.sh
vendored
18
docker/dev/deploy.sh
vendored
|
@ -5,6 +5,8 @@ git checkout master
|
||||||
new_tag="$1"
|
new_tag="$1"
|
||||||
git tag $new_tag
|
git tag $new_tag
|
||||||
|
|
||||||
|
third_semver=$(echo $new_tag | cut -d "." -f 3)
|
||||||
|
|
||||||
# Setting the version on the front end
|
# Setting the version on the front end
|
||||||
cd ../../
|
cd ../../
|
||||||
echo "export let version: string = '$(git describe --tags)';" > "ui/src/version.ts"
|
echo "export let version: string = '$(git describe --tags)';" > "ui/src/version.ts"
|
||||||
|
@ -38,14 +40,22 @@ docker push dessalines/lemmy:x64-$new_tag
|
||||||
# docker push dessalines/lemmy:armv7hf-$new_tag
|
# docker push dessalines/lemmy:armv7hf-$new_tag
|
||||||
|
|
||||||
# aarch64
|
# aarch64
|
||||||
docker build -t lemmy:aarch64 -f Dockerfile.aarch64 ../../
|
# Only do this on major releases (IE the third semver is 0)
|
||||||
docker tag lemmy:aarch64 dessalines/lemmy:arm64-$new_tag
|
if [ $third_semver -eq 0 ]; then
|
||||||
docker push dessalines/lemmy:arm64-$new_tag
|
docker build -t lemmy:aarch64 -f Dockerfile.aarch64 ../../
|
||||||
|
docker tag lemmy:aarch64 dessalines/lemmy:arm64-$new_tag
|
||||||
|
docker push dessalines/lemmy:arm64-$new_tag
|
||||||
|
fi
|
||||||
|
|
||||||
# Creating the manifest for the multi-arch build
|
# Creating the manifest for the multi-arch build
|
||||||
docker manifest create dessalines/lemmy:$new_tag \
|
if [ $third_semver -eq 0 ]; then
|
||||||
|
docker manifest create dessalines/lemmy:$new_tag \
|
||||||
dessalines/lemmy:x64-$new_tag \
|
dessalines/lemmy:x64-$new_tag \
|
||||||
dessalines/lemmy:arm64-$new_tag
|
dessalines/lemmy:arm64-$new_tag
|
||||||
|
else
|
||||||
|
docker manifest create dessalines/lemmy:$new_tag \
|
||||||
|
dessalines/lemmy:x64-$new_tag
|
||||||
|
fi
|
||||||
|
|
||||||
docker manifest push dessalines/lemmy:$new_tag
|
docker manifest push dessalines/lemmy:$new_tag
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue