Update CI

This commit is contained in:
Thomas Miceli
2026-01-31 20:51:40 +07:00
parent 84c6a41340
commit b7278b60ab
2 changed files with 14 additions and 17 deletions

View File

@@ -39,4 +39,5 @@ jobs:
git config user.email "github-actions[bot]@users.noreply.github.com" git config user.email "github-actions[bot]@users.noreply.github.com"
git add . git add .
git commit -m "Deploy docs from ${{ github.repository }}@${{ github.sha }}" || echo "No changes to commit" git commit -m "Deploy docs from ${{ github.repository }}@${{ github.sha }}" || echo "No changes to commit"
git pull --rebase
git push git push

View File

@@ -34,20 +34,16 @@ jobs:
helm repo index --url https://helm.opengist.io --merge index.yaml . helm repo index --url https://helm.opengist.io --merge index.yaml .
fi fi
- name: Deploy to server - name: Push to docs repository
uses: appleboy/scp-action@master run: |
with: git clone https://${{ secrets.DOCS_REPO_TOKEN }}@github.com/${{ secrets.DOCS_REPO }}.git target-repo
host: ${{ secrets.SERVER_HOST }} mkdir -p target-repo/helm
username: ${{ secrets.SERVER_USERNAME }} cp helm/*.tgz target-repo/helm/
key: ${{ secrets.SERVER_SSH_KEY }} cp helm/index.yaml target-repo/helm/
source: "./helm/*.tgz,./helm/index.yaml" cd target-repo
target: ${{ secrets.HELM_SERVER_PATH }} git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Update remote helm repository git add .
uses: appleboy/ssh-action@master git commit -m "Deploy helm chart from ${{ github.repository }}@${{ github.sha }}" || echo "No changes to commit"
with: git pull --rebase
host: ${{ secrets.SERVER_HOST }} git push
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SERVER_SSH_KEY }}
script: |
${{ secrets.UPDATE_HELM_REPO }}