Skip to main content

GitHub Actions Importer๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ ์ž๋™ํ™”

GitHub Actions Importer์„(๋ฅผ) ์‚ฌ์šฉํ•˜์—ฌ GitHub Actions(์œผ)๋กœ์˜ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜์„ ๊ณ„ํšํ•˜๊ณ  ์ž๋™ํ™”ํ•ฉ๋‹ˆ๋‹ค.

GitHub Actions Importer ์ •๋ณด

GitHub Actions Importer์„(๋ฅผ) ์‚ฌ์šฉํ•˜์—ฌ CI/CD ์ง€์› ํŒŒ์ดํ”„๋ผ์ธ์„ ๊ณ„ํšํ•˜๊ณ  ์ž๋™์œผ๋กœ GitHub Actions(์œผ)๋กœ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

GitHub Actions Importer์€(๋Š”) Docker ์ปจํ…Œ์ด๋„ˆ๋กœ ๋ฐฐํฌ๋˜๊ณ  GitHub CLI ํ™•์žฅ์„ ์‚ฌ์šฉํ•˜์—ฌ ์ปจํ…Œ์ด๋„ˆ์™€ ์ƒํ˜ธ ์ž‘์šฉํ•ฉ๋‹ˆ๋‹ค.

GitHub Actions Importer์— ์˜ํ•ด ๋ณ€ํ™˜๋œ ๋ชจ๋“  ์›Œํฌํ”Œ๋กœ๋Š” ํ”„๋กœ๋•์…˜ ์›Œํฌ๋กœ๋“œ๋กœ ์‚ฌ์šฉํ•˜๊ธฐ ์ „์— ์ •ํ™•์„ฑ์„ ๊ฒ€์‚ฌํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๋ชฉํ‘œ๋Š” ๋ชจ๋“  ์›Œํฌํ”Œ๋กœ์— ๋Œ€ํ•ด 80%์˜ ์ „ํ™˜์œจ์„ ๋‹ฌ์„ฑํ•˜๋Š” ๊ฒƒ์ด์ง€๋งŒ ์‹ค์ œ ๋ณ€ํ™˜ ์†๋„๋Š” ๋ณ€ํ™˜๋˜๋Š” ๊ฐ ๊ฐœ๋ณ„ ํŒŒ์ดํ”„๋ผ์ธ์˜ ๊ตฌ์„ฑ์— ๋”ฐ๋ผ ๋‹ฌ๋ผ์ง‘๋‹ˆ๋‹ค.

์ง€์›๋˜๋Š” CI ํ”Œ๋žซํผ

GitHub Actions Importer์„(๋ฅผ) ์‚ฌ์šฉํ•˜๋ฉด ๋‹ค์Œ ํ”Œ๋žซํผ์—์„œ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.

  • Azure DevOps
  • Bamboo
  • Bitbucket Pipelines
  • CircleCI
  • GitLab(ํด๋ผ์šฐ๋“œ ๋ฐ ์ž์ฒด ํ˜ธ์ŠคํŠธํ˜• ๋ชจ๋‘)
  • Jenkins
  • Travis CI

ํ•„์ˆ˜ ์กฐ๊ฑด

GitHub Actions Importer์—๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์š”๊ตฌ ์‚ฌํ•ญ์ด ์žˆ์Šต๋‹ˆ๋‹ค.

  • Linux ๊ธฐ๋ฐ˜ ์ปจํ…Œ์ด๋„ˆ๋ฅผ ์‹คํ–‰ํ•˜๊ณ  ํ•„์š”ํ•œ ๋„๊ตฌ๋ฅผ ์„ค์น˜ํ•  ์ˆ˜ ์žˆ๋Š” ํ™˜๊ฒฝ์ž…๋‹ˆ๋‹ค.

    ์ฐธ๊ณ  ํ•ญ๋ชฉ

    GitHub Actions Importer ์ปจํ…Œ์ด๋„ˆ์™€ CLI๋Š” CI ํ”Œ๋žซํผ๊ณผ ๋™์ผํ•œ ์„œ๋ฒ„์— ์„ค์น˜ํ•  ํ•„์š”๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.

GitHub Actions Importer CLI ํ™•์žฅ ํ”„๋กœ๊ทธ๋žจ ์„ค์น˜ํ•˜๊ธฐ

  1. GitHub Actions Importer CLI ํ™•์žฅ์„ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.

    Bash
    gh extension install github/gh-actions-importer
    
  2. ๋‹ค์Œ ํ™•์žฅ์ด ์„ค์น˜๋˜์–ด ์žˆ๋Š”์ง€ ํ™•์ธ:

    $ gh actions-importer -h
    Options:
      -?, -h, --help  Show help and usage information
    
    Commands:
      update     Update to the latest version of GitHub Actions Importer.
      version    Display the version of GitHub Actions Importer.
      configure  Start an interactive prompt to configure credentials used to authenticate with your CI server(s).
      audit      Plan your CI/CD migration by analyzing your current CI/CD footprint.
      forecast   Forecast GitHub Actions usage from historical pipeline utilization.
      dry-run    Convert a pipeline to a GitHub Actions workflow and output its yaml file.
      migrate    Convert a pipeline to a GitHub Actions workflow and open a pull request with the changes.
    

GitHub Actions Importer CLI ์—…๋ฐ์ดํŠธ

์ตœ์‹  ๋ฒ„์ „์˜ GitHub Actions Importer์„(๋ฅผ) ์‹คํ–‰ํ•˜๋ ค๋ฉด ๋‹ค์Œ update ๋ช…๋ น์„ ์ •๊ธฐ์ ์œผ๋กœ ์‹คํ–‰ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

gh actions-importer update

๋ช…๋ น์ค„์—์„œ ์ธ์ฆํ•˜๊ธฐ

GitHub Actions Importer์ด(๊ฐ€) GitHub ๋ฐ ํ˜„์žฌ CI ์„œ๋ฒ„์™€ ํ†ต์‹ ํ•  ์ˆ˜ ์žˆ๋„๋ก ์ž๊ฒฉ ์ฆ๋ช…์„ ๊ตฌ์„ฑํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ํ™˜๊ฒฝ ๋ณ€์ˆ˜ ๋˜๋Š” .env.local ํŒŒ์ผ์„ ์‚ฌ์šฉํ•˜์—ฌ ์ด๋Ÿฌํ•œ ์ž๊ฒฉ ์ฆ๋ช…์„ ๊ตฌ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋‹ค์Œ ๋ช…๋ น์„ ์‹คํ–‰ํ•˜์—ฌ ๋Œ€ํ™”ํ˜• ํ”„๋กฌํ”„ํŠธ์—์„œ ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋ฅผ ๊ตฌ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

gh actions-importer configure

GitHub Actions Importer CLI ์‚ฌ์šฉ

gh actions-importer์˜ ํ•˜์œ„ ๋ช…๋ น์„ ์‚ฌ์šฉํ•˜์—ฌ GitHub Actions(์˜ˆaudit, forecast, dry-run, migrate)(์œผ)๋กœ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜์„ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค.

๊ธฐ์กด CI ํŒŒ์ดํ”„๋ผ์ธ ๊ฐ์‚ฌ

audit ํ•˜์œ„ ๋ช…๋ น์€ ํ˜„์žฌ CI/CD ๊ณต๊ฐ„์„ ๋ถ„์„ํ•˜์—ฌ CI/CD ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜์„ ๊ณ„ํšํ•˜๋Š” ๋ฐ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ๋ถ„์„์€ GitHub Actions(์œผ)๋กœ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ํ•˜๊ธฐ ์œ„ํ•œ ํƒ€์ž„๋ผ์ธ ๊ณ„ํš์— ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๊ฐ์‚ฌ๋ฅผ ์‹คํ–‰ํ•˜๋ ค๋ฉด ๋‹ค์Œ ๋ช…๋ น์„ ์‚ฌ์šฉํ•˜์—ฌ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ์˜ต์…˜์„ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.

$ gh actions-importer audit -h
Description:
  Plan your CI/CD migration by analyzing your current CI/CD footprint.

[...]

Commands:
  azure-devops  An audit will output a list of data used in an Azure DevOps instance.
  bamboo        An audit will output a list of data used in a Bamboo instance.
  circle-ci     An audit will output a list of data used in a CircleCI instance.
  gitlab        An audit will output a list of data used in a GitLab instance.
  jenkins       An audit will output a list of data used in a Jenkins instance.
  travis-ci     An audit will output a list of data used in a Travis CI instance.

์˜ˆ์ธก ์‚ฌ์šฉ

forecast ํ•˜์œ„ ๋ช…๋ น์€ ๊ธฐ๋ก ํŒŒ์ดํ”„๋ผ์ธ ์‚ฌ์šฉ๋Ÿ‰์„ ๊ฒ€ํ† ํ•˜์—ฌ GitHub Actions ์‚ฌ์šฉ๋Ÿ‰์— ๋Œ€ํ•œ ์˜ˆ์ธก์„ ๋งŒ๋“ญ๋‹ˆ๋‹ค.

์˜ˆ์ธก์„ ์‹คํ–‰ํ•˜๋ ค๋ฉด ๋‹ค์Œ ๋ช…๋ น์„ ์‚ฌ์šฉํ•˜์—ฌ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ์˜ต์…˜์„ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.

$ gh actions-importer forecast -h
Description:
  Forecasts GitHub Actions usage from historical pipeline utilization.

[...]

Commands:
  azure-devops  Forecasts GitHub Actions usage from historical Azure DevOps pipeline utilization.
  bamboo        Forecasts GitHub Actions usage from historical Bamboo pipeline utilization.
  jenkins       Forecasts GitHub Actions usage from historical Jenkins pipeline utilization.
  gitlab        Forecasts GitHub Actions usage from historical GitLab pipeline utilization.
  circle-ci     Forecasts GitHub Actions usage from historical CircleCI pipeline utilization.
  travis-ci     Forecasts GitHub Actions usage from historical Travis CI pipeline utilization.
  github        Forecasts GitHub Actions usage from historical GitHub pipeline utilization.

๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ ํ”„๋กœ์„ธ์Šค ํ…Œ์ŠคํŠธ

dry-run ํ•˜์œ„ ๋ช…๋ น์„ ์‚ฌ์šฉํ•˜์—ฌ ํŒŒ์ดํ”„๋ผ์ธ์„ ํ•ด๋‹น GitHub Actions์™€(๊ณผ) ๋™์ผํ•œ ๊ฒƒ์œผ๋กœ ๋ณ€ํ™˜ํ•œ ๋‹ค์Œ, ์›Œํฌํ”Œ๋กœ๋ฅผ ๋กœ์ปฌ ํŒŒ์ผ ์‹œ์Šคํ…œ์— ์“ธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์‹œํ—˜ ์‹คํ–‰์„ ์ˆ˜ํ–‰ํ•˜๋ ค๋ฉด ๋‹ค์Œ ๋ช…๋ น์„ ์‚ฌ์šฉํ•˜์—ฌ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ์˜ต์…˜์„ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.

$ gh actions-importer dry-run -h
Description:
  Convert a pipeline to a GitHub Actions workflow and output its yaml file.

[...]

Commands:
  azure-devops  Convert an Azure DevOps pipeline to a GitHub Actions workflow and output its yaml file.
  bamboo        Convert a Bamboo pipeline to GitHub Actions workflows and output its yaml file.
  circle-ci     Convert a CircleCI pipeline to GitHub Actions workflows and output the yaml file(s).
  gitlab        Convert a GitLab pipeline to a GitHub Actions workflow and output the yaml file.
  jenkins       Convert a Jenkins job to a GitHub Actions workflow and output its yaml file.
  travis-ci     Convert a Travis CI pipeline to a GitHub Actions workflow and output its yaml file.

GitHub Actions(์œผ)๋กœ ํŒŒ์ดํ”„๋ผ์ธ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜

migrate ํ•˜์œ„ ๋ช…๋ น์„ ์‚ฌ์šฉํ•˜์—ฌ ํŒŒ์ดํ”„๋ผ์ธ์„ ํ•ด๋‹น GitHub Actions๋กœ ๋ณ€ํ™˜ํ•œ ๋‹ค์Œ ์ฝ˜ํ…์ธ ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋Œ์–ด์˜ค๊ธฐ ์š”์ฒญ์„ ๋งŒ๋“ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋งˆ์ด๊ทธ๋ ˆ๋ ˆ์ด์…˜์„ ์‹คํ–‰ํ•˜๋ ค๋ฉด ๋‹ค์Œ ๋ช…๋ น์„ ์‚ฌ์šฉํ•˜์—ฌ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ์˜ต์…˜์„ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.

$ gh actions-importer migrate -h
Description:
  Convert a pipeline to a GitHub Actions workflow and open a pull request with the changes.

[...]

Commands:
  azure-devops  Convert an Azure DevOps pipeline to a GitHub Actions workflow and open a pull request with the changes.
  bamboo        Convert a Bamboo pipeline to GitHub Actions workflows and open a pull request with the changes.
  circle-ci     Convert a CircleCI pipeline to GitHub Actions workflows and open a pull request with the changes.
  gitlab        Convert a GitLab pipeline to a GitHub Actions workflow and open a pull request with the changes.
  jenkins       Convert a Jenkins job to a GitHub Actions workflow and open a pull request with the changes.
  travis-ci     Convert a Travis CI pipeline to a GitHub Actions workflow and open a pull request with the changes.

IssueOps๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์…€ํ”„ ์„œ๋น„์Šค ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ ์ˆ˜ํ–‰

GitHub Actions ๋ฐ GitHub Issues์„(๋ฅผ) ์‚ฌ์šฉํ•˜์—ฌ GitHub Actions Importer์— ๋Œ€ํ•œ CLI ๋ช…๋ น์„ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋ ‡๊ฒŒ ํ•˜๋ฉด ๋กœ์ปฌ ์ปดํ“จํ„ฐ์— ์†Œํ”„ํŠธ์›จ์–ด๋ฅผ ์„ค์น˜ํ•˜์ง€ ์•Š๊ณ  CI/CD ์›Œํฌํ”Œ๋กœ๋ฅผ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ๋ฐฉ๋ฒ•์€ GitHub Actions(์œผ)๋กœ ์…€ํ”„ ์„œ๋น„์Šค ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜์„ ์‚ฌ์šฉํ•˜๋„๋ก ์„ค์ •ํ•˜๋ ค๋Š” ์กฐ์ง์— ํŠนํžˆ ์œ ์šฉํ•ฉ๋‹ˆ๋‹ค. IssueOps๊ฐ€ ๊ตฌ์„ฑ๋˜๋ฉด ์‚ฌ์šฉ์ž๋Š” ๊ด€๋ จ ํ…œํ”Œ๋ฆฟ๊ณผ ๊ด€๋ จ๋œ ๋ฌธ์ œ๋ฅผ ์—ด์–ด ํŒŒ์ดํ”„๋ผ์ธ์„ GitHub Actions(์œผ)๋กœ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

IssueOps๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์…€ํ”„ ์„œ๋น„์Šค ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜์„ ์„ค์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•œ ์ž์„ธํ•œ ๋‚ด์šฉ์€ actions/importer-issue-ops ํ…œํ”Œ๋ฆฟ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ๋ฅผ ์ฐธ์กฐํ•˜์„ธ์š”.

GitHub Actions Importer ๋žฉ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ์‚ฌ์šฉ

GitHub Actions Importer ๋žฉ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ์—๋Š” GitHub Actions Importer์„(๋ฅผ) ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•๊ณผ GitHub Actions(์œผ)๋กœ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ๋ ค์ฃผ๋Š” ํ”Œ๋žซํผ๋ณ„ ํ•™์Šต ๊ฒฝ๋กœ๊ฐ€ ํฌํ•จ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ๋ฆฌํฌ์ง€ํ† ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด GitHub Actions Importer์„(๋ฅผ) ํ†ตํ•œ GitHub Actions(์œผ)๋กœ์˜ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜์„ ๊ณ„ํš, ์˜ˆ์ธก, ์ž๋™ํ™”ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ์•„๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ž์„ธํ•œ ๋‚ด์šฉ์€ GitHub Actions Importer ๋žฉ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ๋ฅผ ์ฐธ์กฐํ•˜์„ธ์š”.

๋ถ€๋ถ„์€ MIT ๋ผ์ด์„ ์Šค์— ๋”ฐ๋ผ https://github.com/github/gh-actions-importer/์—์„œ ์กฐ์ •๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

MIT License

Copyright (c) 2022 GitHub

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.