Sentry Commit Tracking - 2019-05-17 00:00:00

https://docs.sentry.io/workflow/integrations/global-integrations/#commit-tracking-4 关于 Releases https://docs.sentry.io/workflow/releases/?platform=php#create-deploy 如果配置了releases版本, 会有额外的功能 配置发布版本 在项目sdk配置 在sentry上创建 releases 版本, 关联 commits 部署是通知 sentry ruby sdk release 配置 Create Release and Associate Commits 这一步告诉sentry 这个release 有哪些commit 有两步 Organization Settings > Integrations. 配置 gitab 集成 部署的时候告诉sentry 部署了啥, 有哪些commit, 可以用 sentry-cli工具 在gitlab ci 的配置示例 官方 sentry-cli 文档 https://docs.sentry.io/workflow/releases/?platform=php#associate-commits-with-a-release sentry_commmit_tracking: stage: after_deploy image: getsentry/sentry-cli dependencies: - staging_deploy - prod_deploy script: - echo "Sentry Commit Tracking" - export SENTRY_URL=https://sentry.

How to run gitlab ci only when dir changed? - 2019-05-04 16:32:44

参考: https://gitlab.com/gitlab-org/gitlab-ce/issues/19813 当`db/migrate` 目录有变化的时候执行prod的测试脚本 test_prod_schema: stage: test script: - > if git diff HEAD~ --name-only|grep db/migrate; then cp config/database.prod-schema-mysql.yml config/database.yml bundle exec rails db:create mysql -h mysql -uroot -proot <<< "use shiji_prod; source db/tables_dump_April_28_2019.sql;" bundle exec rails db:migrate fi;