Skip to content

Commit

Permalink
prerender_false
Browse files Browse the repository at this point in the history
  • Loading branch information
epompeii committed Dec 3, 2023
1 parent 3cfb3f0 commit 2cca5a7
Show file tree
Hide file tree
Showing 65 changed files with 70 additions and 20 deletions.
6 changes: 5 additions & 1 deletion services/console/lychee.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
base = "https://bencher.dev"
# Use this for testing production
# base = "https://bencher.dev"
exclude = [
"http://localhost:3000/",
"https://discord.gg/yGEsdUh7R4",
"https://github.com/bencherdev/bencher/issues/new*",
# TODO figure out why this page 404s
# "https://bencher.dev/docs/[a-z]{2}/reference/api",
]
# TODO remove exclude paths once `--cookie-jar` is stable
# https://github.com/lycheeverse/lychee/commit/14e748793e8a08d7c2130f63896074f4980204cb
# Netlify paths
exclude_path = [
"./services/console/dist/docs/reference/prior-art/index.html",
"./services/console/dist/docs/de/reference/prior-art/index.html",
Expand Down
2 changes: 1 addition & 1 deletion services/console/src/chunks/reference/en/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@

## `v0.2.30`
- Added `--if-else-branch`, `--else-branch`, and `--endif-branch` flags to to `bencher run` CLI
- Wrote a [branch management](/explanation/branch-management) explanation page for using `bencher run`
- Wrote a [branch management](/explanation/branch-selection) explanation page for using `bencher run`
- Completely refactored docs UI configuration to make it easier to add new pages, one place instead of three
- Made the [Diataxis](https://diataxis.fr/) convention explicit in the docs
- Fixed bounds bug in `bencher mock`
Expand Down
2 changes: 1 addition & 1 deletion services/console/src/content/how_to/de/github-actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Wenn Sie nur erwarten, dass Sie PRs von Zweigen innerhalb des **gleichen** Repos
1. Die aktuellen Branch-Daten zu verwenden, wenn sie bereits existieren. (z.B.: `--if-branch "$GITHUB_REF_NAME"`)
2. Erstellen Sie einen Klon der PR-Zielbranch-Daten und Schwellenwert, wenn sie bereits existieren. (z.B.: `--else-if-branch "$GITHUB_BASE_REF"`)
3. Ansonsten erstellen Sie einen Klon der `main` Branch-Daten und Schwellenwerte. (z.B.: `--else-if-branch main`)
4. Es gibt mehrere Optionen fรผr die Einstellung des Projektbranches. Siehe [Branch Auswahl](/docs/de/how-to/branch-selection) fรผr einen vollstรคndigen รœberblick.
4. Es gibt mehrere Optionen fรผr die Einstellung des Projektbranches. Siehe [Branch Auswahl](/docs/de/explanation/branch-selection) fรผr einen vollstรคndigen รœberblick.
3. Setzen Sie das GitHub API Authentifizierungstoken. (z.B.: `--github-actions ${{ secrets.GITHUB_TOKEN }}`) Wenn diese Option als Teil einer Pull-Anfrage gesetzt ist, werden die Ergebnisse als Kommentar zur Pull-Anfrage hinzugefรผgt. Dies verwendet [die GitHub Actions `GITHUB_TOKEN` Umgebungsvariable](https://docs.github.com/de/actions/security-guides/automatic-token-authentication).
4. Siehe die [bencher run](/docs/de/explanation/bencher-run) Dokumentation fรผr einen vollstรคndigen รœberblick รผber alle Mรถglichkeiten zur Konfiguration des Pull-Anfragen-Kommentars mit den `--ci-*` Flags.

Expand Down
2 changes: 1 addition & 1 deletion services/console/src/content/how_to/de/gitlab-ci-cd.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { BENCHER_VERSION } from "../../../util/ext";
1. Optional: Erstellen Sie eine Umgebungsvariable, um die รผbersichtliche Kontrolle der verwendeten CLI-Version zu erleichtern. (z.B.: <code>{`BENCHER_VERSION: ${BENCHER_VERSION}`}</code>)
1. Laden Sie die Bencher CLI herunter und installieren Sie sie von einer `.deb` Datei.
1. Verfolgen Sie Ihre Benchmarks mit dem Befehl <code><a href="/docs/de/explanation/bencher-run">bencher run</a></code> CLI-Unterbefehl:
1. Es gibt mehrere Optionen zum Einstellen des Projektablaufs. Weitere Einzelheiten finden Sie unter [Zweigauswahl](/docs/de/how-to/branch-selection). Der bereitgestellte Befehl verwendet [GitLab CI/CD vorausdefinierte Variablen](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) und versucht:
1. Es gibt mehrere Optionen zum Einstellen des Projektablaufs. Weitere Einzelheiten finden Sie unter [Zweigauswahl](/docs/de/explanation/branch-selection). Der bereitgestellte Befehl verwendet [GitLab CI/CD vorausdefinierte Variablen](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) und versucht:
1. Verwenden Sie den aktuellen Zweig, wenn er bereits existiert. (z.B.: `--if-branch "$CI_COMMIT_REF_NAME"`)
1. Erstellen Sie einen Klon der MR-Zielbranchdaten und -schwellenwerte, wenn sie bereits existieren. (z.B.: `--else-if-branch "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"`)
1. Andernfalls erstellen Sie einen Klon der `main` Branch-Daten und -Schwellenwerte. (z.B.: `--else-if-branch main`)
Expand Down
2 changes: 1 addition & 1 deletion services/console/src/content/how_to/en/github-actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ If you only expect to have PRs from branches within the **same** repository then
1. Use the current branch data if it already exists. (ex: `--if-branch "$GITHUB_REF_NAME"`)
2. Create a clone of the PR target branch data and thresholds if it already exists. (ex: `--else-if-branch "$GITHUB_BASE_REF"`)
3. Otherwise, create a clone of the `main` branch data and thresholds. (ex: `--else-if-branch main`)
4. There are several options for setting the project branch. See [branch selection](/docs/how-to/branch-selection) for a full overview.
4. There are several options for setting the project branch. See [branch selection](/docs/explanation/branch-selection) for a full overview.
3. Set the GitHub API authentication token. (ex: `--github-actions ${{ secrets.GITHUB_TOKEN }}`) When this option is set as a part of a pull request, then the results will be added to the pull request as a comment. This uses [the GitHub Actions `GITHUB_TOKEN` environment variable](https://docs.github.com/en/actions/security-guides/automatic-token-authentication).
4. See the [bencher run](/docs/explanation/bencher-run) documentation for a full overview of all the ways to configure the pull request comment with the `--ci-*` flags.

Expand Down
2 changes: 1 addition & 1 deletion services/console/src/content/how_to/en/gitlab-ci-cd.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { BENCHER_VERSION } from "../../../util/ext";
1. Optional: Create an environment variable to make it easy to keep track the CLI version being used. (ex: <code>{`BENCHER_VERSION: ${BENCHER_VERSION}`}</code>)
1. Download and install the Bencher CLI from a `.deb`.
1. [Track your benchmarks](/docs/how-to/track-benchmarks) with the <code><a href="/docs/explanation/bencher-run">bencher run</a></code> CLI subcommand:
1. There are several options for setting the project branch. See [branch selection](/docs/how-to/branch-selection) for a full overview. The provided command uses [GitLab CI/CD predefined variables](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) and it tries to:
1. There are several options for setting the project branch. See [branch selection](/docs/explanation/branch-selection) for a full overview. The provided command uses [GitLab CI/CD predefined variables](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) and it tries to:
1. Use the current branch if it already exists. (ex: `--if-branch "$CI_COMMIT_REF_NAME"`)
1. Create a clone of MR target branch data and thresholds if it already exists. (ex: `--else-if-branch "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"`)
1. Otherwise, create a clone of the `main` branch data and thresholds. (ex: `--else-if-branch main`)
Expand Down
2 changes: 1 addition & 1 deletion services/console/src/content/how_to/es/github-actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Si solo esperas tener PRs desde las branch dentro del **mismo** repositorio ento
1. Usa los datos de la branch actual si ya existen. (p.ej: `--if-branch "$GITHUB_REF_NAME"`)
2. Crea un clon de los datos y umbrales de la branch objetivo de PR si ya existen. (p.ej: `--else-if-branch "$GITHUB_BASE_REF"`)
3. De lo contrario, crea un clon de los datos y umbrales de la branch `main`. (p.ej: `--else-if-branch main`)
4. Hay varias opciones para ajustar la branch del proyecto. Consulta [selecciรณn de branch](/docs/es/how-to/branch-selection) para una visiรณn general completa.
4. Hay varias opciones para ajustar la branch del proyecto. Consulta [selecciรณn de branch](/docs/es/explanation/branch-selection) para una visiรณn general completa.
3. Ajusta el token de autenticaciรณn de GitHub API. (p.ej: `--github-actions ${{ secrets.GITHUB_TOKEN }}`) Cuando esta opciรณn se ajusta como parte de un pull request, entonces los resultados serรกn adicionados al pull request como un comentario. Esto usa [la variable de entorno `GITHUB_TOKEN` de GitHub Actions](https://docs.github.com/es/actions/security-guides/automatic-token-authentication).
4. Consulta la [documentaciรณn de bencher run](/docs/es/explanation/bencher-run) para una visiรณn general completa de todas las maneras de configurar el comentario de pull request con las opciones `--ci-*`.

Expand Down
2 changes: 1 addition & 1 deletion services/console/src/content/how_to/es/gitlab-ci-cd.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { BENCHER_VERSION } from "../../../util/ext";
1. Opcional: Crea una variable de entorno para facilitar el seguimiento de la versiรณn de CLI que se estรก utilizando. (ej: <code>{`BENCHER_VERSION: ${BENCHER_VERSION}`}</code>)
1. Descarga e instala el CLI de Bencher desde un `.deb`.
1. [Rastrea tus benchmarks](/docs/es/how-to/track-benchmarks) con el subcomando CLI <code><a href="/docs/es/explanation/bencher-run">bencher run</a></code>:
1. Hay varias opciones para establecer la rama del proyecto. Consulta [selecciรณn de rama](/docs/es/how-to/branch-selection) para una descripciรณn completa. El comando proporcionado utiliza [variables predefinidas de GitLab CI/CD](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) e intenta:
1. Hay varias opciones para establecer la rama del proyecto. Consulta [selecciรณn de rama](/docs/es/explanation/branch-selection) para una descripciรณn completa. El comando proporcionado utiliza [variables predefinidas de GitLab CI/CD](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) e intenta:
1. Utilizar la rama actual si ya existe. (ej: `--if-branch "$CI_COMMIT_REF_NAME"`)
1. Crear un clon de los datos de la rama objetivo MR y los umbrales si ya existe. (ej: `--else-if-branch "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"`)
1. En otro caso, crear un clon de los datos de la rama `main` y los umbrales. (ej: `--else-if-branch main`)
Expand Down
2 changes: 1 addition & 1 deletion services/console/src/content/how_to/fr/github-actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Si vous prรฉvoyez uniquement d'avoir des PRs provenant de branches au sein du **
1. Utiliser des donnรฉes de branche actuelles si elles existent dรฉjร . (ex: `--if-branch "$GITHUB_REF_NAME"`)
2. Crรฉer un clone des donnรฉes et des seuils de la branche cible de la PR si cela existe dรฉjร . (ex: `--else-if-branch "$GITHUB_BASE_REF"`)
3. Sinon, crรฉez un clone des donnรฉes et des seuils de la branche `main`. (ex: `--else-if-branch main`)
4. Il existe plusieurs options pour dรฉfinir la branche du projet. Voir la [sรฉlection de branche](/docs/fr/how-to/branch-selection) pour une vue d'ensemble complรจte.
4. Il existe plusieurs options pour dรฉfinir la branche du projet. Voir la [sรฉlection de branche](/docs/fr/explanation/branch-selection) pour une vue d'ensemble complรจte.
3. Paramรฉtrez le jeton d'authentification de l'API GitHub. (ex: `--github-actions ${{ secrets.GITHUB_TOKEN }}`). Lorsque cette option est dรฉfinie dans le cadre d'une pull request, alors les rรฉsultats seront ajoutรฉs ร  la pull request sous forme de commentaire. Ceci utilise [la variable d'environnement `GITHUB_TOKEN` des GitHub Actions](https://docs.github.com/fr/actions/security-guides/automatic-token-authentication).
4. Consultez la documentation [bencher run](/docs/fr/explanation/bencher-run) pour une vue d'ensemble complรจte de toutes les faรงons de configurer le commentaire de pull request avec les drapeaux `--ci-*`.

Expand Down
2 changes: 1 addition & 1 deletion services/console/src/content/how_to/fr/gitlab-ci-cd.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { BENCHER_VERSION } from "../../../util/ext";
1. Optionnel : Crรฉez une variable d'environnement pour faciliter le suivi de la version de la CLI utilisรฉe. (ex: <code>{`BENCHER_VERSION: ${BENCHER_VERSION}`}</code>)
1. Tรฉlรฉchargez et installez la CLI Bencher ร  partir d'un `.deb`.
1. [Suivez vos benchmarks](/docs/fr/how-to/track-benchmarks) avec la sous-commande CLI <code><a href="/docs/fr/explanation/bencher-run">bencher run</a></code> :
1. Il existe plusieurs options pour dรฉfinir la branche du projet. Consultez [la sรฉlection de branches](/docs/fr/how-to/branch-selection) pour un aperรงu complet. La commande fournie utilise [les variables prรฉdรฉfinies de GitLab CI/CD](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) et elle essaie de :
1. Il existe plusieurs options pour dรฉfinir la branche du projet. Consultez [la sรฉlection de branches](/docs/fr/explanation/branch-selection) pour un aperรงu complet. La commande fournie utilise [les variables prรฉdรฉfinies de GitLab CI/CD](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) et elle essaie de :
1. Utiliser la branche actuelle si elle existe dรฉjร . (ex: `--if-branch "$CI_COMMIT_REF_NAME"`)
1. Crรฉer un clรดne des donnรฉes et des seuils de la branche cible de MR si elle existe dรฉjร . (ex: `--else-if-branch "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"`)
1. Sinon, crรฉer un clรดne des donnรฉes et des seuils de la branche `main`. (ex: `--else-if-branch main`)
Expand Down
2 changes: 1 addition & 1 deletion services/console/src/content/how_to/ja/github-actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import GitHubActions6 from "../../../chunks/how_to/github-actions.6.mdx";
1. ใ™ใงใซๅญ˜ๅœจใ™ใ‚‹ๅ ดๅˆใฏใ€็พๅœจใฎbranchใฎใƒ‡ใƒผใ‚ฟใ‚’ไฝฟ็”จใ—ใพใ™ใ€‚(ไพ‹: `--if-branch "$GITHUB_REF_NAME"`)
2. ใ™ใงใซๅญ˜ๅœจใ™ใ‚‹ๅ ดๅˆใฏใ€PRใ‚ฟใƒผใ‚ฒใƒƒใƒˆbranchใฎใƒ‡ใƒผใ‚ฟใจใ—ใใ„ๅ€คใ‚’ใ‚ฏใƒญใƒผใƒณใ—ใพใ™ใ€‚(ไพ‹: `--else-if-branch "$GITHUB_BASE_REF"`)
3. ใใ‚Œไปฅๅค–ใฎๅ ดๅˆใฏใ€`main` branchใฎใƒ‡ใƒผใ‚ฟใจใ—ใใ„ๅ€คใ‚’ใ‚ฏใƒญใƒผใƒณใ—ใพใ™ใ€‚(ไพ‹: `--else-if-branch main`)
4. ใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆbranchใ‚’่จญๅฎšใ™ใ‚‹ใŸใ‚ใฎใ„ใใคใ‹ใฎใ‚ชใƒ—ใ‚ทใƒงใƒณใŒใ‚ใ‚Šใพใ™ใ€‚ๅ…จไฝ“ใฎๆฆ‚่ฆใซใคใ„ใฆใฏใ€[branch selection](/docs/ja/how-to/branch-selection) ใ‚’ใ”่ฆงใใ ใ•ใ„ใ€‚
4. ใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆbranchใ‚’่จญๅฎšใ™ใ‚‹ใŸใ‚ใฎใ„ใใคใ‹ใฎใ‚ชใƒ—ใ‚ทใƒงใƒณใŒใ‚ใ‚Šใพใ™ใ€‚ๅ…จไฝ“ใฎๆฆ‚่ฆใซใคใ„ใฆใฏใ€[branch selection](/docs/ja/explanation/branch-selection) ใ‚’ใ”่ฆงใใ ใ•ใ„ใ€‚
3. GitHub APIใฎ่ช่จผใƒˆใƒผใ‚ฏใƒณใ‚’่จญๅฎšใ—ใพใ™ใ€‚(ไพ‹: `--github-actions ${{ secrets.GITHUB_TOKEN }}`) ใ“ใฎใ‚ชใƒ—ใ‚ทใƒงใƒณใŒใƒ—ใƒซใƒชใ‚ฏใ‚จใ‚นใƒˆใฎไธ€้ƒจใจใ—ใฆ่จญๅฎšใ•ใ‚Œใ‚‹ใจใ€็ตๆžœใฏใƒ—ใƒซใƒชใ‚ฏใ‚จใ‚นใƒˆใซใ‚ณใƒกใƒณใƒˆใจใ—ใฆ่ฟฝๅŠ ใ•ใ‚Œใพใ™ใ€‚ใ“ใ‚Œใฏ[GitHub Actionsใฎ `GITHUB_TOKEN` ็’ฐๅขƒๅค‰ๆ•ฐ](https://docs.github.com/ja/actions/security-guides/automatic-token-authentication)ใ‚’ไฝฟ็”จใ—ใพใ™ใ€‚
4. `--ci-*` ใƒ•ใƒฉใ‚ฐใ‚’ไฝฟ็”จใ—ใŸใƒ—ใƒซใƒชใ‚ฏใ‚จใ‚นใƒˆใ‚ณใƒกใƒณใƒˆใฎ่จญๅฎšๆ–นๆณ•ใซใคใ„ใฆใฏใ€[bencher run](/docs/ja/explanation/bencher-run) ใฎใƒ‰ใ‚ญใƒฅใƒกใƒณใƒ†ใƒผใ‚ทใƒงใƒณใ‚’ๅ…จ้ข็š„ใซใ”่ฆงใใ ใ•ใ„ใ€‚

Expand Down
2 changes: 1 addition & 1 deletion services/console/src/content/how_to/ja/gitlab-ci-cd.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { BENCHER_VERSION } from "../../../util/ext";
1. ใ‚ชใƒ—ใ‚ทใƒงใƒณ๏ผšไฝฟ็”จไธญใฎCLIใƒใƒผใ‚ธใƒงใƒณใ‚’่ฟฝ่ทกใ—ใ‚„ใ™ใใ™ใ‚‹ใŸใ‚ใฎ็’ฐๅขƒๅค‰ๆ•ฐใ‚’ไฝœๆˆใ—ใพใ™ใ€‚๏ผˆไพ‹๏ผš<code>{`BENCHER_VERSION: ${BENCHER_VERSION}`}</code>๏ผ‰
1. `.deb`ใ‹ใ‚‰Bencher CLIใ‚’ใƒ€ใ‚ฆใƒณใƒญใƒผใƒ‰ใ—ใ€ใ‚คใƒณใ‚นใƒˆใƒผใƒซใ—ใพใ™ใ€‚
1. <code><a href="/docs/ja/explanation/bencher-run">bencher run</a></code> CLIใ‚ตใƒ–ใ‚ณใƒžใƒณใƒ‰ใ‚’ไฝฟใฃใฆใ€ใ‚ใชใŸใฎใƒ™ใƒณใƒใƒžใƒผใ‚ฏใ‚’[่ฟฝ่ทกใ—ใพใ™](/docs/ja/how-to/track-benchmarks):
1. ใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใƒ–ใƒฉใƒณใƒใฎ่จญๅฎšใซ้–ขใ—ใฆใฏใ„ใใคใ‹ใฎ้ธๆŠž่‚ขใŒใ‚ใ‚Šใพใ™ใ€‚ๅฎŒๅ…จใชๆฆ‚่ฆณใซใคใ„ใฆใฏใ€[branch selection](/docs/ja/how-to/branch-selection)ใ‚’ๅ‚็…งใ—ใฆใใ ใ•ใ„ใ€‚ๆไพ›ใ•ใ‚ŒใŸใ‚ณใƒžใƒณใƒ‰ใฏ[GitLab CI/CD predefined variables](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html)ใ‚’ไฝฟ็”จใ—ใ€
1. ใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใƒ–ใƒฉใƒณใƒใฎ่จญๅฎšใซ้–ขใ—ใฆใฏใ„ใใคใ‹ใฎ้ธๆŠž่‚ขใŒใ‚ใ‚Šใพใ™ใ€‚ๅฎŒๅ…จใชๆฆ‚่ฆณใซใคใ„ใฆใฏใ€[branch selection](/docs/ja/explanation/branch-selection)ใ‚’ๅ‚็…งใ—ใฆใใ ใ•ใ„ใ€‚ๆไพ›ใ•ใ‚ŒใŸใ‚ณใƒžใƒณใƒ‰ใฏ[GitLab CI/CD predefined variables](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html)ใ‚’ไฝฟ็”จใ—ใ€
1. ใ™ใงใซๅญ˜ๅœจใ—ใฆใ„ใ‚‹ๅ ดๅˆใ€็พๅœจใฎใƒ–ใƒฉใƒณใƒใ‚’ไฝฟ็”จใ—ใพใ™ใ€‚๏ผˆไพ‹๏ผš `--if-branch "$CI_COMMIT_REF_NAME"`๏ผ‰
1. ใ™ใงใซๅญ˜ๅœจใ—ใฆใ„ใ‚‹ๅ ดๅˆใ€MRใ‚ฟใƒผใ‚ฒใƒƒใƒˆใƒ–ใƒฉใƒณใƒใฎใƒ‡ใƒผใ‚ฟใจ้–พๅ€คใฎใ‚ฏใƒญใƒผใƒณใ‚’ไฝœๆˆใ—ใพใ™ใ€‚๏ผˆไพ‹๏ผš `--else-if-branch "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"`๏ผ‰
1. ใใ‚Œไปฅๅค–ใฎๅ ดๅˆใฏใ€ `main` ใƒ–ใƒฉใƒณใƒใฎใƒ‡ใƒผใ‚ฟใจ้–พๅ€คใฎใ‚ฏใƒญใƒผใƒณใ‚’ไฝœๆˆใ—ใพใ™ใ€‚๏ผˆไพ‹๏ผš `--else-if-branch main`๏ผ‰
Expand Down
2 changes: 1 addition & 1 deletion services/console/src/content/how_to/ko/github-actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Pull Request์—์„œ ์„ฑ๋Šฅ ํšŒ๊ท€๋ฅผ ์žก์•„๋‚ด๊ธฐ ์œ„ํ•ด PR์—์„œ ๋ฒค์น˜๋งˆํฌ๋ฅผ
1. ํ˜„์žฌ ๋ธŒ๋žœ์น˜ ๋ฐ์ดํ„ฐ๊ฐ€ ์ด๋ฏธ ์กด์žฌํ•˜๋ฉด ์ด๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. (์˜ˆ: `--if-branch "$GITHUB_REF_NAME"`)
2. PR ๋Œ€์ƒ ๋ธŒ๋žœ์น˜ ๋ฐ์ดํ„ฐ์™€ ์ž„๊ณ„๊ฐ’์ด ์ด๋ฏธ ์กด์žฌํ•˜๋ฉด ์ด๋ฅผ ๋ณต์ œํ•ด์„œ ๋งŒ๋“ญ๋‹ˆ๋‹ค. (์˜ˆ: `--else-if-branch "$GITHUB_BASE_REF"`)
3. ๊ทธ ์™ธ์˜ ๊ฒฝ์šฐ, `main` ๋ธŒ๋žœ์น˜ ๋ฐ์ดํ„ฐ์™€ ์ž„๊ณ„๊ฐ’์„ ๋ณต์ œํ•ด์„œ ๋งŒ๋“ญ๋‹ˆ๋‹ค. (์˜ˆ: `--else-if-branch main`)
4. ํ”„๋กœ์ ํŠธ ๋ธŒ๋žœ์น˜๋ฅผ ์„ค์ •ํ•˜๋Š” ๋ฐ๋Š” ์—ฌ๋Ÿฌ ๊ฐ€์ง€ ์˜ต์…˜์ด ์žˆ์Šต๋‹ˆ๋‹ค. ์ „์ฒด ๊ฐœ์š”๋Š” [๋ธŒ๋žœ์น˜ ์„ ํƒ](/docs/ko/how-to/branch-selection)์„ ์ฐธ์กฐํ•˜์„ธ์š”.
4. ํ”„๋กœ์ ํŠธ ๋ธŒ๋žœ์น˜๋ฅผ ์„ค์ •ํ•˜๋Š” ๋ฐ๋Š” ์—ฌ๋Ÿฌ ๊ฐ€์ง€ ์˜ต์…˜์ด ์žˆ์Šต๋‹ˆ๋‹ค. ์ „์ฒด ๊ฐœ์š”๋Š” [๋ธŒ๋žœ์น˜ ์„ ํƒ](/docs/ko/explanation/branch-selection)์„ ์ฐธ์กฐํ•˜์„ธ์š”.
3. GitHub API ์ธ์ฆ ํ† ํฐ์„ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. (์˜ˆ: `--github-actions ${{ secrets.GITHUB_TOKEN }}`) ์ด ์˜ต์…˜์ด pull request์˜ ์ผ๋ถ€๋กœ ์„ค์ •๋˜๋ฉด, ๊ฒฐ๊ณผ๊ฐ€ pull request์— ๋Œ“๊ธ€๋กœ ์ถ”๊ฐ€๋ฉ๋‹ˆ๋‹ค. ์ด๋Š” [GitHub Actions `GITHUB_TOKEN` ํ™˜๊ฒฝ ๋ณ€์ˆ˜](https://docs.github.com/ko/actions/security-guides/automatic-token-authentication)๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
4. `--ci-*` ํ”Œ๋ž˜๊ทธ๋กœ pull request ๋Œ“๊ธ€์„ ์„ค์ •ํ•˜๋Š” ๋ชจ๋“  ๋ฐฉ๋ฒ•์— ๋Œ€ํ•œ ์ „์ฒด ๊ฐœ์š”๋Š” [bencher run](/docs/ko/explanation/bencher-run) ๋ฌธ์„œ๋ฅผ ์ฐธ์กฐํ•˜์„ธ์š”.

Expand Down
2 changes: 1 addition & 1 deletion services/console/src/content/how_to/ko/gitlab-ci-cd.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { BENCHER_VERSION } from "../../../util/ext";
1. ์„ ํƒ ์‚ฌํ•ญ: ์‚ฌ์šฉ ์ค‘์ธ CLI ๋ฒ„์ „์„ ์‰ฝ๊ฒŒ ์ถ”์ ํ•  ์ˆ˜ ์žˆ๋„๋ก ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค (์˜ˆ: <code>{`BENCHER_VERSION: ${BENCHER_VERSION}`}</code>)
1. `.deb`์—์„œ Bencher CLI ๋ฅผ ๋‹ค์šด๋กœ๋“œํ•˜๊ณ  ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.
1. <code><a href="/docs/ko/explanation/bencher-run">bencher run</a></code> CLI ํ•˜์œ„ ๋ช…๋ น์–ด๋ฅผ ์ด์šฉํ•˜์—ฌ ๋ฒค์น˜๋งˆํฌ๋ฅผ ์ถ”์ ํ•ฉ๋‹ˆ๋‹ค([๋ฒค์น˜๋งˆํฌ ์ถ”์ ](/docs/ko/how-to/track-benchmarks) ์ฐธ์กฐ):
1. ํ”„๋กœ์ ํŠธ์˜ ๋ธŒ๋žœ์น˜๋ฅผ ์„ค์ •ํ•˜๋Š” ์—ฌ๋Ÿฌ ์˜ต์…˜์ด ์žˆ์Šต๋‹ˆ๋‹ค. ์ „์ฒด ๊ฐœ์š”๋Š” [๋ธŒ๋žœ์น˜ ์„ ํƒ](/docs/ko/how-to/branch-selection)์„ ์ฐธ์กฐํ•˜์‹ญ์‹œ์˜ค. ์ œ๊ณต๋œ ๋ช…๋ น์–ด๋Š” [GitLab CI/CD ์‚ฌ์ „ ์ •์˜ ๋ณ€์ˆ˜](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html)๋ฅผ ์‚ฌ์šฉํ•˜๋ฉฐ:
1. ํ”„๋กœ์ ํŠธ์˜ ๋ธŒ๋žœ์น˜๋ฅผ ์„ค์ •ํ•˜๋Š” ์—ฌ๋Ÿฌ ์˜ต์…˜์ด ์žˆ์Šต๋‹ˆ๋‹ค. ์ „์ฒด ๊ฐœ์š”๋Š” [๋ธŒ๋žœ์น˜ ์„ ํƒ](/docs/ko/explanation/branch-selection)์„ ์ฐธ์กฐํ•˜์‹ญ์‹œ์˜ค. ์ œ๊ณต๋œ ๋ช…๋ น์–ด๋Š” [GitLab CI/CD ์‚ฌ์ „ ์ •์˜ ๋ณ€์ˆ˜](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html)๋ฅผ ์‚ฌ์šฉํ•˜๋ฉฐ:
1. ํ•ด๋‹น ๋ธŒ๋žœ์น˜๊ฐ€ ์ด๋ฏธ ์กด์žฌํ•˜๋ฉด ํ•ด๋‹น ๋ธŒ๋žœ์น˜๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค (์˜ˆ: `--if-branch "$CI_COMMIT_REF_NAME"`)
1. MR ํƒ€๊ฒŸ ๋ธŒ๋žœ์น˜ ๋ฐ์ดํ„ฐ์™€ ์ž„๊ณ„๊ฐ’์˜ ๋ณต์ œ๋ณธ์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค (์˜ˆ: `--else-if-branch "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"`)
1. ๊ทธ๋ ‡์ง€ ์•Š์œผ๋ฉด, `main` ๋ธŒ๋žœ์น˜ ๋ฐ์ดํ„ฐ์™€ ์ž„๊ณ„๊ฐ’์˜ ๋ณต์ œ๋ณธ์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค (์˜ˆ: `--else-if-branch main`)
Expand Down
Loading

0 comments on commit 2cca5a7

Please sign in to comment.