From 18bbf6cd5e07275c17a4b708c132c33068f72f39 Mon Sep 17 00:00:00 2001 From: simplifique Date: Thu, 12 Feb 2026 15:59:31 -0300 Subject: [PATCH 1/9] chore: update registry URL to use local IP for image and git operations --- .gitea/workflows/deploy.yaml | 6 +++--- k8s/base/deployment.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 94195e5..e8bc9b8 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -15,7 +15,7 @@ jobs: - name: Build and Push run: | set -euo pipefail - REGISTRY="git.simplifiquehc.com.br" + REGISTRY="http://172.35.0.216:3000" IMAGE_NAME="$REGISTRY/simplifique/vendaweb-portal" SHA_TAG=$(echo "${{ github.sha }}" | cut -c1-7) @@ -45,7 +45,7 @@ jobs: run: | set -euo pipefail SHA_TAG=$(echo "${{ github.sha }}" | cut -c1-7) - IMAGE_NAME="git.simplifiquehc.com.br/simplifique/vendaweb-portal" + IMAGE_NAME="http://172.35.0.216:3000/simplifique/vendaweb-portal" MANIFEST_FILE="k8s/overlays/prod/deployment-image-digest-patch.yaml" @@ -56,7 +56,7 @@ jobs: exit 1 fi - git remote set-url origin "https://${{ github.actor }}:${{ secrets.GITEA_TOKEN }}@git.simplifiquehc.com.br/simplifique/Vendaweb-portal.git" + git remote set-url origin "https://${{ github.actor }}:${{ secrets.GITEA_TOKEN }}@http://172.35.0.216:3000/simplifique/Vendaweb-portal.git" git config user.name "Gitea Action" git config user.email "actions@simplifiquehc.com.br" diff --git a/k8s/base/deployment.yaml b/k8s/base/deployment.yaml index 6577170..eb20526 100644 --- a/k8s/base/deployment.yaml +++ b/k8s/base/deployment.yaml @@ -27,7 +27,7 @@ spec: terminationGracePeriodSeconds: 30 containers: - name: portal - image: git.simplifiquehc.com.br/simplifique/vendaweb-portal:latest + image: http://172.35.0.216:3000/simplifique/vendaweb-portal:latest imagePullPolicy: IfNotPresent ports: - name: http From e4de5af67a75ccd0494abaf6496fada4aefa4e9d Mon Sep 17 00:00:00 2001 From: simplifique Date: Thu, 12 Feb 2026 16:06:16 -0300 Subject: [PATCH 2/9] chore: remove HTTP protocol from registry URL in deploy workflow --- .gitea/workflows/deploy.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index e8bc9b8..b933c17 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -15,7 +15,7 @@ jobs: - name: Build and Push run: | set -euo pipefail - REGISTRY="http://172.35.0.216:3000" + REGISTRY="172.35.0.216:3000" IMAGE_NAME="$REGISTRY/simplifique/vendaweb-portal" SHA_TAG=$(echo "${{ github.sha }}" | cut -c1-7) @@ -45,7 +45,7 @@ jobs: run: | set -euo pipefail SHA_TAG=$(echo "${{ github.sha }}" | cut -c1-7) - IMAGE_NAME="http://172.35.0.216:3000/simplifique/vendaweb-portal" + IMAGE_NAME="172.35.0.216:3000/simplifique/vendaweb-portal" MANIFEST_FILE="k8s/overlays/prod/deployment-image-digest-patch.yaml" @@ -56,7 +56,7 @@ jobs: exit 1 fi - git remote set-url origin "https://${{ github.actor }}:${{ secrets.GITEA_TOKEN }}@http://172.35.0.216:3000/simplifique/Vendaweb-portal.git" + git remote set-url origin "https://${{ github.actor }}:${{ secrets.GITEA_TOKEN }}@172.35.0.216:3000/simplifique/Vendaweb-portal.git" git config user.name "Gitea Action" git config user.email "actions@simplifiquehc.com.br" From 8aa310daeca1e6a26a51a8d1bfe14fa1c93a8593 Mon Sep 17 00:00:00 2001 From: simplifique Date: Thu, 12 Feb 2026 16:18:42 -0300 Subject: [PATCH 3/9] chore: improve image tag update logic in deploy workflow and adjust image registry URL format --- .gitea/workflows/deploy.yaml | 12 ++++++++---- k8s/overlays/prod/deployment-image-digest-patch.yaml | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index b933c17..8d3ed17 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -45,11 +45,11 @@ jobs: run: | set -euo pipefail SHA_TAG=$(echo "${{ github.sha }}" | cut -c1-7) - IMAGE_NAME="172.35.0.216:3000/simplifique/vendaweb-portal" MANIFEST_FILE="k8s/overlays/prod/deployment-image-digest-patch.yaml" - sed -i -E "s|^([[:space:]]*image: ${IMAGE_NAME}:).*|\\1${SHA_TAG}|g" "$MANIFEST_FILE" + # Match image line for vendaweb-portal and replace tag (works with any registry hostname) + sed -i -E "s|(image: .*vendaweb-portal:).*|\1${SHA_TAG}|" "$MANIFEST_FILE" if [ -z "${{ secrets.GITEA_TOKEN }}" ]; then echo "Missing secrets.GITEA_TOKEN (needed to push back to repo)" @@ -62,5 +62,9 @@ jobs: git config user.email "actions@simplifiquehc.com.br" git add "$MANIFEST_FILE" - git commit -m "chore: update image tag to $SHA_TAG [skip ci]" - git push origin main + if git diff --staged --quiet; then + echo "Manifest already has image tag $SHA_TAG, nothing to commit" + else + git commit -m "chore: update image tag to $SHA_TAG [skip ci]" + git push origin main + fi diff --git a/k8s/overlays/prod/deployment-image-digest-patch.yaml b/k8s/overlays/prod/deployment-image-digest-patch.yaml index c7438f5..04f0a66 100644 --- a/k8s/overlays/prod/deployment-image-digest-patch.yaml +++ b/k8s/overlays/prod/deployment-image-digest-patch.yaml @@ -7,4 +7,4 @@ spec: spec: containers: - name: portal - image: git.simplifiquehc.com.br/simplifique/vendaweb-portal:d7edd99 + image: 172.35.0.216:3000/simplifique/vendaweb-portal:d7edd99 From 3110e0aeb450098d05755f20bc43399022834279 Mon Sep 17 00:00:00 2001 From: simplifique Date: Thu, 12 Feb 2026 16:34:55 -0300 Subject: [PATCH 4/9] chore: change git remote URL protocol from HTTPS to HTTP in deploy workflow --- .gitea/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 8d3ed17..9cedb08 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -56,7 +56,7 @@ jobs: exit 1 fi - git remote set-url origin "https://${{ github.actor }}:${{ secrets.GITEA_TOKEN }}@172.35.0.216:3000/simplifique/Vendaweb-portal.git" + git remote set-url origin "http://${{ github.actor }}:${{ secrets.GITEA_TOKEN }}@172.35.0.216:3000/simplifique/Vendaweb-portal.git" git config user.name "Gitea Action" git config user.email "actions@simplifiquehc.com.br" From adcf5a435d0c0701ad3f9557e821bb60c501239b Mon Sep 17 00:00:00 2001 From: Gitea Action Date: Thu, 12 Feb 2026 19:36:48 +0000 Subject: [PATCH 5/9] chore: update image tag to 3110e0a [skip ci] --- k8s/overlays/prod/deployment-image-digest-patch.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/overlays/prod/deployment-image-digest-patch.yaml b/k8s/overlays/prod/deployment-image-digest-patch.yaml index 04f0a66..637d936 100644 --- a/k8s/overlays/prod/deployment-image-digest-patch.yaml +++ b/k8s/overlays/prod/deployment-image-digest-patch.yaml @@ -7,4 +7,4 @@ spec: spec: containers: - name: portal - image: 172.35.0.216:3000/simplifique/vendaweb-portal:d7edd99 + image: 172.35.0.216:3000/simplifique/vendaweb-portal:3110e0a From fc41c4929bdfb6e4110885d671f47ea84d69be8a Mon Sep 17 00:00:00 2001 From: luis Date: Thu, 12 Feb 2026 14:47:44 -0500 Subject: [PATCH 6/9] Atualizar k8s/base/deployment.yaml --- k8s/base/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/base/deployment.yaml b/k8s/base/deployment.yaml index eb20526..fe1953a 100644 --- a/k8s/base/deployment.yaml +++ b/k8s/base/deployment.yaml @@ -27,7 +27,7 @@ spec: terminationGracePeriodSeconds: 30 containers: - name: portal - image: http://172.35.0.216:3000/simplifique/vendaweb-portal:latest + image: 172.35.0.216:3000/simplifique/vendaweb-portal:latest imagePullPolicy: IfNotPresent ports: - name: http From e24fd41cced5e6c7406bfcea11fad5afa9be6814 Mon Sep 17 00:00:00 2001 From: Gitea Action Date: Thu, 12 Feb 2026 19:54:12 +0000 Subject: [PATCH 7/9] chore: update image tag to fc41c49 [skip ci] --- k8s/overlays/prod/deployment-image-digest-patch.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/overlays/prod/deployment-image-digest-patch.yaml b/k8s/overlays/prod/deployment-image-digest-patch.yaml index 637d936..c99f59e 100644 --- a/k8s/overlays/prod/deployment-image-digest-patch.yaml +++ b/k8s/overlays/prod/deployment-image-digest-patch.yaml @@ -7,4 +7,4 @@ spec: spec: containers: - name: portal - image: 172.35.0.216:3000/simplifique/vendaweb-portal:3110e0a + image: 172.35.0.216:3000/simplifique/vendaweb-portal:fc41c49 From 161ed4dbe08f181579920a31018b8e95d16caf10 Mon Sep 17 00:00:00 2001 From: simplifique Date: Thu, 12 Feb 2026 16:59:01 -0300 Subject: [PATCH 8/9] fix: correct title spelling in index.html from "Plataforma Smart" to "Plataforma Smarts" --- src/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.html b/src/index.html index 1fbab3c..ce467af 100644 --- a/src/index.html +++ b/src/index.html @@ -38,7 +38,7 @@ - Plataforma Smart + Plataforma Smarts From 84a1d849298bc3fb10a42266a955416fc62b54de Mon Sep 17 00:00:00 2001 From: Gitea Action Date: Thu, 12 Feb 2026 20:11:16 +0000 Subject: [PATCH 9/9] chore: update image tag to 161ed4d [skip ci] --- k8s/overlays/prod/deployment-image-digest-patch.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/overlays/prod/deployment-image-digest-patch.yaml b/k8s/overlays/prod/deployment-image-digest-patch.yaml index c99f59e..d5bcf45 100644 --- a/k8s/overlays/prod/deployment-image-digest-patch.yaml +++ b/k8s/overlays/prod/deployment-image-digest-patch.yaml @@ -7,4 +7,4 @@ spec: spec: containers: - name: portal - image: 172.35.0.216:3000/simplifique/vendaweb-portal:fc41c49 + image: 172.35.0.216:3000/simplifique/vendaweb-portal:161ed4d