diff --git a/.deploy/deployment.yaml b/.deploy/deployment.yaml index 9dca2115c..c3406b588 100644 --- a/.deploy/deployment.yaml +++ b/.deploy/deployment.yaml @@ -14,7 +14,8 @@ spec: spec: containers: - name: wallet-prajna - image: pratapmridha/wallet:__LATEST_RELEASE_TAG__ + image: __GOOGLE_ARTIFACT_URL__/__GOOGLE_PROJECT_ID__/__GOOGLE_ARTIFACT_REPO__/wallet:__LATEST_RELEASE_TAG__ + imagePullPolicy: Always resources: limits: memory: "256Mi" diff --git a/.github/workflows/wallet-pipe.yaml b/.github/workflows/wallet-pipe.yaml index d0ae0b2c2..07877bc75 100644 --- a/.github/workflows/wallet-pipe.yaml +++ b/.github/workflows/wallet-pipe.yaml @@ -68,5 +68,12 @@ jobs: run: gcloud container clusters get-credentials hypermine-gke --region=asia-south1 - name: Replace tags run: find .deploy/deployment.yaml -type f -exec sed -i -e "s#__LATEST_RELEASE_TAG__#${{ env.LATEST_RELEASE_TAG }}#" {} \; + - name: "Replace secrets" + run: find .deploy/deployment.yaml -type f -exec sed -i ''s/__GOOGLE_ARTIFACT_URL__/${{ secrets.GOOGLE_ARTIFACT_URL }}/g'' {} \; + - name: "Replace secrets" + run: find .deploy/deployment.yaml -type f -exec sed -i ''s/__GOOGLE_ARTIFACT_REPO__/${{ secrets.GOOGLE_ARTIFACT_REPO }}/g'' {} \; + - name: "Replace secrets" + run: find .deploy/deployment.yaml -type f -exec sed -i ''s/__GOOGLE_PROJECT_ID__/${{ secrets.GOOGLE_PROJECT_ID }}/g'' {} \; + - name: "Deploy to GKE" run: kubectl apply -f .deploy/deployment.yaml