From 6141a4324665621ef78a89817ed6067fa5e534de Mon Sep 17 00:00:00 2001 From: mayank Date: Thu, 12 Mar 2026 00:11:24 +0530 Subject: [PATCH] fix: replace placeholders with actual values --- .gitea/workflows/build-push.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build-push.yaml b/.gitea/workflows/build-push.yaml index 18d9d05..805a5cd 100644 --- a/.gitea/workflows/build-push.yaml +++ b/.gitea/workflows/build-push.yaml @@ -14,22 +14,22 @@ jobs: - name: Login to Harbor run: | - echo '${{ secrets.HARBOR_TOKEN }}' | docker login YOUR_REGISTRY -u '${{ secrets.HARBOR_USERNAME }}' --password-stdin + echo '${{ secrets.HARBOR_TOKEN }}' | docker login harbor.mxhunt.in -u '${{ secrets.HARBOR_USERNAME }}' --password-stdin - name: Build and Push Docker image run: | - IMAGE=YOUR_REGISTRY/${{ vars.HARBOR_PROJECT }}/payment-api:${{ gitea.sha }} + IMAGE=harbor.mxhunt.in/${{ vars.HARBOR_PROJECT }}/payment-api:${{ gitea.sha }} docker build -t $IMAGE . docker push $IMAGE - docker tag $IMAGE YOUR_REGISTRY/${{ vars.HARBOR_PROJECT }}/payment-api:latest - docker push YOUR_REGISTRY/${{ vars.HARBOR_PROJECT }}/payment-api:latest + docker tag $IMAGE harbor.mxhunt.in/${{ vars.HARBOR_PROJECT }}/payment-api:latest + docker push harbor.mxhunt.in/${{ vars.HARBOR_PROJECT }}/payment-api:latest echo "Pushed: $IMAGE" - name: Update deployments repo run: | - git clone https://gitea-actions:${{ secrets.DEPLOY_TOKEN }}@YOUR_GITEA/${{ gitea.repository_owner }}/deployments.git + git clone https://gitea-actions:${{ secrets.DEPLOY_TOKEN }}@git.mxhunt.in/${{ gitea.repository_owner }}/deployments.git cd deployments - sed -i "s|image: .*/payment-api:.*|image: YOUR_REGISTRY/${{ vars.HARBOR_PROJECT }}/payment-api:${{ gitea.sha }}|" payment-api/deployment.yaml + sed -i "s|image: .*/payment-api:.*|image: harbor.mxhunt.in/${{ vars.HARBOR_PROJECT }}/payment-api:${{ gitea.sha }}|" payment-api/deployment.yaml git config user.name "gitea-actions" git config user.email "gitea-actions@localhost" git add payment-api/deployment.yaml