Update CI
This commit is contained in:
1
.github/workflows/docs.yml
vendored
1
.github/workflows/docs.yml
vendored
@@ -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
|
||||||
|
|||||||
30
.github/workflows/helm.yml
vendored
30
.github/workflows/helm.yml
vendored
@@ -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 }}
|
|
||||||
Reference in New Issue
Block a user