본문 바로가기
반응형

[AWS]/GITLAB72

36장. 병합 요청 - 첫 번째 병합 요청 ## Feature/new title 브랜치에서 소스코드 수정 후, maser로 merge 수행 -> 빌드후, 웹배포 성공 - 배포 성공 후, Feature/new title 브랜치는 자동 삭제 ## .gitlab-ci.yml image: node stages: - build - test - deploy staging - deploy production - production tests cache: key: ${CI_COMMIT_REF_SLUG} paths: - node_modules/ variables: STAGING_DOMAIN: aido-stg.surge.sh PRODUCTION_DOMAIN: aido-pro.surge.sh build website: stage: build only: - maste.. 2022. 2. 18.
35장. Merge requests - Configuring Gitlab ## Default Branch 설정 (main -> master) ## Protected branches - 아무도 변경사항을 master 로 푸시할 수 없음 ## Settings -> General -> Merge requests - Fast-forward merge 선택 - Merge checks -> Pipelines must succeed 선택 ================================== Meanwhile, we can do a few settings regarding marriage requests. So if we go to Settings Repository. There are a few things that we can configure to, for example, i.. 2022. 2. 18.
33장. Merge requests - Using branches ## 목적 : 배포는 master 브랜치만 설정 image: node stages: - build - test - deploy staging - deploy production - production tests cache: key: ${CI_COMMIT_REF_SLUG} paths: - node_modules/ variables: STAGING_DOMAIN: aido-stg.surge.sh PRODUCTION_DOMAIN: aido-pro.surge.sh build website: stage: build script: - echo $CI_COMMIT_SHORT_SHA - npm install - npm install -g gatsby-cli - gatsby build - sed -i "s/%%VERSIO.. 2022. 2. 18.
34장. Merge requests - What is a Merge Request? Merge requests - What is a Merge Request? Merge Requests are a good way to visualize new changes that are about to be made in the master branch. Instead of making changes directly into master, the Merge Request workflow allows you to: allow others to review the changes allows the pipeline to run once without affecting others or the master branch allows for additional changes to be made and see t.. 2022. 2. 18.
32. 수동 배포 / 수동으로 작업 트리거 https://docs.gitlab.com/ee/ci/yaml/#whenmanual Keyword reference for the `.gitlab-ci.yml` file | GitLab Documentation for GitLab Community Edition, GitLab Enterprise Edition, Omnibus GitLab, and GitLab Runner. docs.gitlab.com https://docs.gitlab.com/ee/ci/yaml/#allow_failure Keyword reference for the `.gitlab-ci.yml` file | GitLab Documentation for GitLab Community Edition, GitLab Enterprise Edi.. 2022. 2. 18.
31. 변수 정의 ## .gitlab-ci.yml image: node stages: - build - test - deploy staging - deploy production - production tests cache: key: ${CI_COMMIT_REF_SLUG} paths: - node_modules/ variables: STAGING_DOMAIN: aido-stg.surge.sh PRODUCTION_DOMAIN: aido-pro.surge.sh build website: stage: build script: - echo $CI_COMMIT_SHORT_SHA - npm install - npm install -g gatsby-cli - gatsby build - sed -i "s/%%VERSION%%/$CI_C.. 2022. 2. 18.
30. 배포 환경 ## 배포환경 - 파이프라인에 스테이징 / 프로덕션 환경 추가 ## Deployments --> Environments 에서 조회 가능 ## .gitlab-ci.yml image: node stages: - build - test - deploy staging - deploy production - production tests cache: key: ${CI_COMMIT_REF_SLUG} paths: - node_modules/ build website: stage: build script: - echo $CI_COMMIT_SHORT_SHA - npm install - npm install -g gatsby-cli - gatsby build - sed -i "s/%%VERSION%%/$CI_COMMIT_.. 2022. 2. 15.
29장. Cache vs Artifacts https://docs.gitlab.com/ee/ci/caching/#cache-vs-artifacts Caching in GitLab CI/CD | GitLab Documentation for GitLab Community Edition, GitLab Enterprise Edition, Omnibus GitLab, and GitLab Runner. docs.gitlab.com ## Artifacts - 산출물 저장 ## Cache - 프로젝트 의존성 일시 저장 I wanted to take a minute to quickly go over the difference between cash and artifacts. Now, cash and artifacts they made seem very simil.. 2022. 2. 15.
런타임(Runtime) 이란? Node.js 를 Javascript 런타임이라고 부르곤 합니다. 그렇다면 런타임(Runtime)은 어떤 의미일까요? 런타임이란, 운영체제 위 또는 운영체제 자체에서 실행되면서 특정 프로그래밍 언어가 구동될 수 있는 환경이라고 합니다. 즉 그림으로 표현하자면 다음과 같이 표현할 수 있을 것 같습니다. 2022. 2. 15.
[Node.js] npm이란? Node Pacackage Manager. 이하 npm은 이름 그대로 노드 패키지 매니저이다. 세상에는 많은 자바스크립트 프로그래머들이 있고, 그들이 유용한 자바스크립트 패키지들을 이미 만들어 두었고, 그런 코드들이 공개되어 있는 것이 바로 npm이다. npm은 세계 최대 규모의 패키지들을 보유하고 있다. 이러한 패키지들은 노드의 생태계를 더욱 견고하게 만들었다. npm에 업로드된 노드 모듈을 패키지라고 부른다. 모듈이 다른 모듈을 사용할 수 있는 것처럼, 패키지도 다른 패키지를 사용할 수 있다. 이러한 관계를 의존 관계라고 한다. https://www.npmjs.com/ npm | build amazing things Bring the best of open source to your company n.. 2022. 2. 15.
28장. 캐시를 사용하여 빌드 속도 최적화 ## 깃랩러너 서버에 캐시 저장 - Cache 는 key 와 paths 로 구성 - 전역으로 공통 사용 image: node:10 stages: - build - test - deploy - deployment tests cache: key: ${CI_COMMIT_REF_SLUG} paths: - node_modules/ build website: stage: build script: - echo $CI_COMMIT_SHORT_SHA - npm install - npm install -g gatsby-cli - gatsby build - sed -i "s/%%VERSION%%/$CI_COMMIT_SHORT_SHA/" ./public/index.html artifacts: paths: - ./public .. 2022. 2. 14.
27장. 파이프라인 트리거 / 실패한 작업 재시도 / 파이프라인 일정 ## CI/CD -> Schedules 선택 In this short lecture, we're going to have a look at pipelining, triggers, how we can retry failed jobs and now we can start the pipeline without making a comment. Now, it may happen that your pipeline fails for no apparent reason, and especially if the job that failed is really like the last one or one of the last jobs and the previous one really took a long time to exe.. 2022. 2. 14.
26 26 2022. 2. 11.
25 25 2022. 2. 11.
24 24 2022. 2. 11.
23 23 2022. 2. 11.
22 22 2022. 2. 11.
21 21 2022. 2. 11.
20 20 2022. 2. 11.
19 19 2022. 2. 11.
18 18 2022. 2. 11.
17 17 2022. 2. 11.
16 16 2022. 2. 11.
15 15 2022. 2. 10.
14 14 2022. 2. 10.
13 13 2022. 2. 10.
12 12 2022. 2. 10.
11 11 2022. 2. 10.
10 10 2022. 2. 10.
9 9 2022. 2. 10.
반응형