fix(upgrade): v1.3.0 restore validator delegate grant only (release/1… #55
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # For developer | |
| name: Deploy for devint | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| - feat/** | |
| - fea/** | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| notify_to_lark: | |
| name: Notify to Lark | |
| runs-on: ubuntu-latest | |
| outputs: | |
| version_info: ${{ steps.meta.outputs.version_info }} | |
| commit_logs: ${{ steps.meta.outputs.commit_logs }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: "Get Github version info" | |
| id: meta | |
| run: | | |
| commit_id=`echo ${GITHUB_SHA} | cut -c1-8` | |
| repository_url=${{ github.event.repository.html_url }} | |
| version_info="[${{ github.ref_name }}](${repository_url}/tree/${{ github.ref_name }}) (commit=[${commit_id}](${repository_url}/commit/${{ github.sha }}))" | |
| echo "version_info=$version_info" >> $GITHUB_OUTPUT | |
| commit_logs=$(git log ${{ github.event.before }}..${{ github.sha }} --pretty=format:"%h(%an) - %s") | |
| echo "commit_logs=$commit_logs" >> $GITHUB_OUTPUT | |
| continue-on-error: true | |
| - name: "Notify begin message to Lark" | |
| uses: kevin-rd/lark-notify@v1.8 | |
| env: | |
| LARK_WEBHOOK: ${{ secrets.LARK_WEBHOOK }} | |
| with: | |
| header_template: "blue" | |
| header_content: ${{ github.repository }} deploy soon | |
| message_env_tag: "devint" | |
| message_version: "${{ steps.meta.outputs.version_info }}" | |
| message_commit_logs: "${{ steps.meta.outputs.commit_logs }}" | |
| publish_image: | |
| name: Publish Docker image | |
| uses: './.github/workflows/docker-publish.yml' | |
| secrets: inherit | |
| with: | |
| tags: mocachain/moca:develop | |
| deploy_with_k8s: | |
| name: Deploy to devint on k8s | |
| uses: './.github/workflows/deploy-to-k8s.yml' | |
| needs: | |
| - notify_to_lark | |
| - publish_image | |
| secrets: inherit | |
| with: | |
| namespace_k8s: moca-dev | |
| release_name: moca-validator | |
| version_info: "${{ needs.notify_to_lark.outputs.version_info }}" | |
| commit_info: "${{ needs.notify_to_lark.outputs.commit_logs }}" |