SuMineLee / OES_L2DSR

0 stars 0 forks source link

Action 1차 정리 #66

Closed SuMineLee closed 2 years ago

SuMineLee commented 2 years ago

Action 1차 정리

SuMineLee commented 2 years ago

1 정리

  1. Automate by using workflow

Actions : GitHub내의 대부분의 기능을 자동화하는 패키지화된 스크립트.

구성요소 : trigger, workflow, jobs, runner, steps, actions Workflow- by 트리거, 스케줄(cron), 수동(ㅁㅁㅁ-distpatch), Webhook API .github/workflows.yml UsageLimits: 계정 Plan 따라 private+GitHub-hosted-runner는 무료 시간 분 제공 무료 - public, self-hosted runner

Runner :

조직내 workflow 공유 : Actions 탭에 starter workflow 등록 : caller workflow[on: workflow_call] - workflow 호출 -> 호출자 context로 연결됨. <- 동일 repo 내에 || calloed workflow는 public repo에 저장. 조직내 self-hosted-runner 공유 : 그룹에서 접근 제어 가능+ 정책 설정 가능. 조직내 Secrets 공유

SuMineLee commented 2 years ago

03.Build continuous integration (CI) workflows by using GitHub Actions

Build and test a Node.js project by using GitHub Actions and a templated workflow • Create a workflow from a template 0 runs-on: $${matrix.os} 0 Strategy: matrix: os: [10.5, 10.4] node-version: [8.2, 8.1] • Understand the GitHub Actions logs • Test against multiple targets 0 Strategy: matrix: os: [10.5, 10.4] node-version: [8.2, 8.1] • Separate build and test jobs 0 빌드와 test를 job으로 분리하면 로그를 더 쉽게 이해 • Save and access build artifacts 0 actions/upload-artifact@main(path, name) actions/download-artifact @main(name, path) 0 upload-artifact 는 build 후에 진행되어야함. • Automate labeling a PR on review 0 트리거 0 PR에 label추가 : pullreminder/label-when-approved-action Debug a failed test using the GitHub Actions Log

SuMineLee commented 2 years ago
  1. Build continuous integration (CI) workflows by using GitHub Actions
SuMineLee commented 2 years ago

++++++ ++++ artifact strage 저장 90.

++++++ ++++ env = ACtions 가 참조하는 환경 변수. ++++ PR 리뷰 트리거:

SuMineLee commented 2 years ago

리뷰 완료 QA 요청