From e66bcb64a4691383c9253c99b9863a0cc6856415 Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Thu, 29 Dec 2022 15:42:25 +0000 Subject: [PATCH] Check out the latest tag on update --- docs/docs/administration/updating.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/docs/administration/updating.md b/docs/docs/administration/updating.md index 9f11e40b7..d0c955e1a 100644 --- a/docs/docs/administration/updating.md +++ b/docs/docs/administration/updating.md @@ -41,8 +41,10 @@ you _may_ need to specify `--flavour`, in the same way as Run as the `akkoma` user: ```sh -# Pull in new changes -git pull +# fetch changes +git fetch +# check out the latest tag +git checkout $(git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1) # Run with production configuration export MIX_ENV=prod -- 2.45.2