diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index b411c18..bf5215e 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -48,9 +48,13 @@ jobs: git config user.name "Cristian Felipe" git config user.email "cristiancruz0529@gmail.com" - # Reemplazo seguro apuntando a la versión semántica + # 1. Aseguramos que tenemos lo último del servidor + git pull origin main --rebase + + # 2. Reemplazo del tag sed -i -E "s|(image: gitea.cruzcloud.net/devops/ecommerce-frontend:).*|\1${{ steps.vars.outputs.VERSION }}|g" workloads/ecommerce/frontend.yaml + # 3. Commit y Push git add workloads/ecommerce/frontend.yaml git commit -m "chore: release ${{ steps.vars.outputs.VERSION }} [skip ci]" || echo "Sin cambios para hacer commit" - git push \ No newline at end of file + git push origin main \ No newline at end of file