memtx_tx: add documentation page #168
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
name: Deploy branch | |
on: | |
pull_request: | |
# Cancel workflow runs on PRs when the PR is updated with a newer commit. | |
# Such runs will have a concurrency group named | |
# `{github.workflow}-{github.ref}`, | |
# for example, | |
# `deploy-branch/refs/add-concurrency`. | |
# | |
# Runs on the `master` branch and tags will never be canceled, | |
# due to having a unique group name | |
# `{github.run_id}-{github.run_attempt}`, | |
# for example, | |
# `3477882280-1`. | |
concurrency: | |
group: ${{ | |
( | |
github.ref == 'refs/heads/master' || | |
startsWith(github.ref, 'refs/tags/') | |
) && | |
format('{0}-{1}', github.run_id, github.run_attempt) || | |
format('{0}-{1}', github.workflow, github.ref) }} | |
cancel-in-progress: true | |
jobs: | |
deploy-branch: | |
runs-on: ['self-hosted', 'Linux', 'flavor-8-16'] | |
container: tarantool/doc-builder:slim-4.2 | |
env: | |
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}} | |
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}} | |
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}} | |
S3_ENDPOINT_URL: ${{secrets.S3_ENDPOINT_URL}} | |
S3_UPLOAD_PATH: ${{secrets.S3_UPLOAD_PATH}} | |
S3_BUCKET: ${{secrets.S3_BUCKET}} | |
DEPLOYMENT_NAME: latest | |
VKTEAMS_BOT_TOKEN: ${{secrets.VKTEAMS_TARANTOOLBOT_TOKEN}} | |
TARANTOOL_UPDATE_URL: ${{secrets.INTERNALS_DEVELOP_UPDATE_URL}} | |
TARANTOOL_UPDATE_KEY: ${{secrets.INTERNALS_UPDATE_KEY}} | |
steps: | |
- uses: actions/checkout@v2 | |
id: checkout | |
- name: Start dev server deployment | |
uses: bobheadxi/deployments@v1 | |
id: deployment | |
with: | |
step: start | |
token: ${{secrets.GITHUB_TOKEN}} | |
env: ${{env.DEPLOYMENT_NAME}} | |
ref: ${{github.head_ref}} | |
- run: make -f ci.mk json | |
id: make-json | |
- run: bash upload_output.sh | |
id: upload-output | |
- run: bash webhooks/update_deployment.sh | |
id: update-deployment-webhook | |
- name: update deployment status | |
uses: bobheadxi/deployments@v1 | |
with: | |
step: finish | |
token: ${{secrets.GITHUB_TOKEN}} | |
env: ${{env.DEPLOYMENT_NAME}} | |
status: ${{job.status}} | |
deployment_id: ${{steps.deployment.outputs.deployment_id}} | |
env_url: ${{secrets.TARANTOOL_HOST}} | |
- name: Send VK Teams message on failures | |
# bot token won't be accessible in the forks | |
if: ${{ failure() && env.VKTEAMS_BOT_TOKEN != '' }} | |
uses: tarantool/actions/report-job-status@master | |
with: | |
api-url: "https://api.internal.myteam.mail.ru/bot/v1/" | |
bot-token: ${{ env.VKTEAMS_BOT_TOKEN }} | |
chat-id: tt_docs_cicd_reports | |
job-steps: ${{ ToJson(steps) }} |