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 ๊ธฐ๋ฐ ์ปจํ
์ด๋๋ฅผ ์คํํ๊ณ ํ์ํ ๋๊ตฌ๋ฅผ ์ค์นํ ์ ์๋ ํ๊ฒฝ์
๋๋ค.
-
Docker๊ฐ ์ค์น๋์ด ์คํ ์ค์ ๋๋ค.
-
GitHub CLI๊ฐ ์ค์น๋ฉ๋๋ค.
์ฐธ๊ณ ํญ๋ชฉ
GitHub Actions Importer ์ปจํ ์ด๋์ CLI๋ CI ํ๋ซํผ๊ณผ ๋์ผํ ์๋ฒ์ ์ค์นํ ํ์๊ฐ ์์ต๋๋ค.
-
GitHub Actions Importer CLI ํ์ฅ ํ๋ก๊ทธ๋จ ์ค์นํ๊ธฐ
-
GitHub Actions Importer CLI ํ์ฅ์ ์ค์นํฉ๋๋ค.
Bash gh extension install github/gh-actions-importer
gh extension install github/gh-actions-importer
-
๋ค์ ํ์ฅ์ด ์ค์น๋์ด ์๋์ง ํ์ธ:
$ 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.