2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 19:31:35 +00:00

Don't bother with dev images in deploy script, enable caching

This commit is contained in:
asonix 2020-06-08 12:47:32 -05:00
parent 557ee64cf3
commit 9fac40bcdd

View file

@ -24,7 +24,6 @@ function build_image() {
docker build \ docker build \
--pull \ --pull \
--no-cache \
--build-arg TAG=$tag \ --build-arg TAG=$tag \
-t asonix/pictrs:$arch-$tag \ -t asonix/pictrs:$arch-$tag \
-t asonix/pictrs:$arch-latest \ -t asonix/pictrs:$arch-latest \
@ -63,11 +62,11 @@ git push origin $new_tag
git push git push
# Rebuilding docker # Rebuilding docker
docker-compose build # docker-compose build
docker tag dev_pictrs:latest asonix/pictrs:x64-$new_tag-dev # docker tag dev_pictrs:latest asonix/pictrs:x64-$new_tag-dev
docker tag dev_pictrs:latest asonix/pictrs:x64-latest-dev # docker tag dev_pictrs:latest asonix/pictrs:x64-latest-dev
docker push asonix/pictrs:x64-$new_tag-dev # docker push asonix/pictrs:x64-$new_tag-dev
docker push asonix/pictrs:x64-latest-dev # docker push asonix/pictrs:x64-latest-dev
# Build for arm64v8 and arm32v7 # Build for arm64v8 and arm32v7
build_image $new_tag arm64v8 build_image $new_tag arm64v8