Update .gitea/workflows/build.yaml
This commit is contained in:
@@ -48,9 +48,13 @@ jobs:
|
|||||||
git config user.name "Cristian Felipe"
|
git config user.name "Cristian Felipe"
|
||||||
git config user.email "[email protected]"
|
git config user.email "[email protected]"
|
||||||
|
|
||||||
# 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
|
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 add workloads/ecommerce/frontend.yaml
|
||||||
git commit -m "chore: release ${{ steps.vars.outputs.VERSION }} [skip ci]" || echo "Sin cambios para hacer commit"
|
git commit -m "chore: release ${{ steps.vars.outputs.VERSION }} [skip ci]" || echo "Sin cambios para hacer commit"
|
||||||
git push
|
git push origin main
|
||||||
Reference in New Issue
Block a user