fix main branch lock in deploy

This commit is contained in:
azykov@mail.ru
2026-07-01 11:51:43 +03:00
parent f8039e5007
commit 6deb1c2462
+4 -2
View File
@@ -82,9 +82,11 @@ jobs:
cd "/app-cache/${{ gitea.repository }}"
if [ ! -d .git ]; then
git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git .
else
git pull origin main
fi
git fetch --prune origin ${{ gitea.ref_name }}
git checkout -f FETCH_HEAD
git reset --hard FETCH_HEAD
git clean -fdx
printf 'REGISTRY=%s\nIMAGE_PREFIX=%s\n' \
'${{ env.REGISTRY }}' \
'${{ needs.build-app.outputs.IMAGE_PREFIX }}' > .env