From cca1c00dddade6a0cc22ea7aed5905c9d130e3cb Mon Sep 17 00:00:00 2001 From: Oleksandr Varchenko <88536216+alexvarko@users.noreply.github.com> Date: Fri, 29 Dec 2023 17:33:01 +0200 Subject: [PATCH] Update ci (#12) * Add autodeploy in ci * Update actions.yaml * Update actions.yaml --- .github/workflows/actions.yaml | 26 +++++++++++++------------- .github/workflows/update-doc.yaml | 28 ---------------------------- 2 files changed, 13 insertions(+), 41 deletions(-) delete mode 100644 .github/workflows/update-doc.yaml diff --git a/.github/workflows/actions.yaml b/.github/workflows/actions.yaml index c193631..a1e8211 100644 --- a/.github/workflows/actions.yaml +++ b/.github/workflows/actions.yaml @@ -1,7 +1,7 @@ on: push: branches: - - 'dev' + - 'master' jobs: converge: @@ -32,15 +32,15 @@ jobs: . $(werf ci-env github --as-file) werf export web --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA - # stage-deploy: - # name: Deploy on stage - # needs: converge - # runs-on: ubuntu-latest - # steps: - # - name: ConfigCreate - # run: | - # mkdir ~/.kube/ - # echo "${{ secrets.KUBECONFIG }}" > config - # mv config ~/.kube/ - # ls ~/.kube/ - # kubectl set image deployment/ -n stage + stage-deploy: + name: Deploy on stage + needs: converge + runs-on: ubuntu-latest + steps: + - name: ConfigCreate + run: | + mkdir ~/.kube/ + echo "${{ secrets.KUBECONFIG }}" > config + mv config ~/.kube/ + ls ~/.kube/ + kubectl set image deployment/solarity-docs-stage-webclient webclient=ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA -n docs-stage diff --git a/.github/workflows/update-doc.yaml b/.github/workflows/update-doc.yaml deleted file mode 100644 index 156f1de..0000000 --- a/.github/workflows/update-doc.yaml +++ /dev/null @@ -1,28 +0,0 @@ -name: Update Docusaurus - -on: - repository_dispatch: - types: - - update-docusaurus - -jobs: - update: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Update Docusaurus Docs - run: | - git clone https://github.com/dl-solarity/solidity-lib.git newdocs - rm -rf docs/reference/contracts/*/ - cp -r newdocs/docs/* docs/reference/contracts/ - - - name: Commit and Push Changes - run: | - git config user.name "GitHub Actions" - git config user.email "actions@github.com" - git add docs - git commit -m "Update documentation" - git push origin master