merge inhouse and non inhouse pipelines
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- github-actions
- 領域
- ci-cd, infrastructure
調査の方向性
.github/workflows/create-kustomize-with-bratiska-cli-inhouse.yml と .github/workflows/create-kustomize-with-bratiska-cli.yml を比較し、重複しているパイプラインロジックと現在の runner 設定を特定します。runner を明確に選択できる仕組みを備えた 1 つのファイルに workflows を統合し、その後、GitHub と in-house の両方の実行パスが引き続き利用可能であり、冗長な workflow が削除されていることを確認します。
索引モデルが issue の本文から書いたものです。
説明
'm starting to think that splitting this into two files wasn't the best idea. We are just copying the same code twice. Which goes directly against DRY principle.
My suggestion would be to keep just one file - .github/workflows/create-kustomize-with-bratiska-cli-inhouse.yml and drop "-inhouse" from the name. Then if you would like to run it on GitHub runners, you can just specify
runs-on: ['ubuntu-latest']
and it does the same thing and it is almost as many characters as specify "-bratiska-cli.yml" or "-bratiska-cli-inhouse.yml". Or, if you would like to be even more user friendly, you can just rework this into:
runs-on:
description: "Define environment where the job will run. Possible values: ['github', 'inhouse']"
type: choice
options:
- github
- inhouse
required: false
default: 'inhouse'
Then you can just have a basic step that makes that decision inside a pipeline
- name: Pick a runner
run: |
if [[ "${inputs.runs-on}" == "github" ]]; then
# print and set env variable
elif [[ "${inputs.runs-on}" == "inhouse" ]]; then
# print and set env variable
else
# throw an error about unknown runner environment
fi
This leaves the door open for multiple environments in the future and is still as user friendly as possible and you can easily switch just by specifying different input.
I'm flagging this here, as .github/workflows/create-kustomize-with-bratiska-cli-inhouse.yml and .github/workflows/create-kustomize-with-bratiska-cli.yml are new files and we can easily change it here. We don't have to make this change now for all of the files and all of the repositories. That can be pushed to latter PRs/changes.
- 主要言語
- 言語のデータがありません
- スター
- 0
- フォーク
- 0
- 平均マージ
- 3日 3時間
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bratislava/github-actions のほかの issue
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
bratislava/github-actions#25 ·
-
good first issue help wanted
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
bratislava/github-actions#24 ·
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
bratislava/github-actions#21 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
bratislava/github-actions#20 ·
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
bratislava/github-actions#19 ·
bratislava/github-actions の issue をすべて見る
似ている issue
-
ci: nothing regenerates the Go contract types, so a hand-edit to types.gen.go passes対応中かも @shaiknoorullah が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
shaiknoorullah/hg-mono#993 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] web.deploymentStrategy and admintools.deploymentStrategy are ignored, and component ServiceAccounts have no namespace対応中かも @wankhede04 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
temporalio/helm-charts#1006 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
opdev/vuln-scan-cert#44 ·
-
agent:needs-review documentation feature good first issue P3 · 低 隐私与合规
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
ASDW51/DanmuFloat#102 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100