본문

Git Action - 1

도입

이번 포스팅은 Git Action에 대해 알아볼 예정이다. 
이전 Jenkins 환경 구축 때문에 많이 삽질한 경험이 있다. Jenkins와 같은 다른 플랫폼이 아닌 Github에서 CI/CD를 제공한다면 관리 플랫폼이 줄어드는 이점이 있다.

또한, CI/CD를 설정하므로 반복되는 작업을 줄이므로 여유 시간을 확보하고 실수를 줄일 수 있다.


개념

Github에서 제공하는 CI/CD tool
CI: continuous integration, 지속적인 통합, 최신 코드 유지
CD: continuous deploy, 지속적인 배포, 자동 배포 환경

https://help.github.com/en/actions/getting-started-with-github-actions/about-github-actions#about-github-actions


Pros

1. Github에서 제공하는 tool이기 때문에 관리하기 편함
(∵ jenkins와 같은 tool 사용 시, jenkins, github 모두 관리 해야한다)


Glossary

1. Workflow: 사용자가 지정한 작업 순서
custom automated processes 

2. Runners: github에서 제공하는 OS 머신
Github-hosted machines

3. Job: 작업 단위
한개 이상의 step으로 이루워진 작업단위, Job 단위로 가상 머신 설정, sequential 하게 Job 설정 or Parallel 하게 Job 설정

4. Workflow file: workflow 설정 파일
.github/workflows 내 YAML 확장자로 존재

5. Artifact: workflow를 통한 산출물 
(c.g. log file, screenshots ..)


주의

Fork하더라도 default로 workflow는 실행되지 않는다.

 

 

#git #github #action 

공유

댓글