github / github/branch-deploy

Option to ignore locks, for secondary operations against environments

オープン
#385 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
question
主要言語
TypeScript
スター
576
フォーク
74
平均マージ
11時間 7分
マージ済み PR(30日)
1

説明

### Details

Thanks for the awesome action. npm already uses branch-deploy for deploying code changes and schema migrations.

We're looking at using branch-deploy to trigger data transitions (backfills) as well, which may need to run for days. We typically run `.lock --global` ahead of deploying code changes, but that blocks all executions of `github/branch-deploy`, regardless of `trigger`. I'm wondering if there's a way we can have code changes and transitions deploying independently.

Is there a way our transition workflow could ignore the global lock? Or could there be multiple types of locks, such that there's a global deployment lock, but also a global transition lock?

```yaml
- name: branch-deploy
uses: github/branch-deploy@10.0.0
with:
trigger: .transition
lock_type: transition
```

🤔 I see there's also a [`github/command` action](https://github.com/github/command) which likely ignores locks, but we'll need some way of referring to an environment.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start with the branch-deploy action's handling of the global lock, trigger values, and environment references; compare that with the mentioned github/command action. Determine whether the requested workflow should ignore the global lock or support separate lock types, then verify the chosen behavior through the action's existing workflow configuration and documentation.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
github-actions, typescript
領域
ci-cd, devops
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。