Fix workflow usando actions/checkout en lugar de git clone manual
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 4s

This commit is contained in:
2025-11-21 14:51:45 -06:00
parent 5709b5645d
commit e5456bf522

View File

@@ -14,13 +14,10 @@ jobs:
APP_DOMAIN: ${{ vars.APP_DOMAIN }}
NUXT_PUBLIC_APP_URL: ${{ vars.NUXT_PUBLIC_APP_URL }}
steps:
- uses: actions/checkout@v3
- name: Build, push and deploy
run: |
# Checkout
git clone https://gitea.nucleoriofrio.com/${{ github.repository }}.git /tmp/build-${{ github.sha }}
cd /tmp/build-${{ github.sha }}
git checkout ${{ github.sha }}
# Login to registry
docker login $REG -u ${{ secrets.REGISTRY_USERNAME }} -p ${{ secrets.REGISTRY_PASSWORD }}
@@ -41,7 +38,3 @@ jobs:
docker compose pull
docker compose --project-name $APP_NAME down
docker compose --project-name $APP_NAME up -d --remove-orphans --wait
# Cleanup
cd /
rm -rf /tmp/build-${{ github.sha }}