이 글에서는 GitLab을 사용하여 CI/CD pipeline을 설정하는 방법에 대해 안내해 드리겠습니다.
소개
Be sure you have added your Capacitor app first to Capgo, this tutorial just focuses on the upload phase. If you need to add your app to Capgo, you can follow this 튜토리얼.
기여 규칙
기여 규칙을 따라야 합니다. 기존 규칙기존 규칙

기존 규칙
기존 규칙
stages:
- tag
bump_version:
stage: tag
only:
- main
except:
variables:
- $CI_COMMIT_MESSAGE =~ /^chore\(release\):/
script:
- git config --global user.email "gitlab@yourdomain.com"
- git config --global user.name "GitLab CI/CD"
- git checkout $CI_COMMIT_REF_NAME
- git pull origin $CI_COMMIT_REF_NAME
- npx capacitor-standard-version
- git push origin $CI_COMMIT_REF_NAME --tags
기존 규칙기존 규칙기존 규칙
기존 규칙
기존 규칙
stages:
- deploy
deploy:
stage: deploy
only:
- tags # This job will only run for tag pushes
script:
- apt-get update -qy && apt-get install -y nodejs npm
- npm install -g @capgo/cli
- npm ci
- npm run build
- npx @capgo/cli bundle upload -a $CAPGO_TOKEN -c production
variables:
FIREBASE_CONFIG: $FIREBASE_CONFIG # Define this in your GitLab project settings
environment:
name: production
Capgo API 키 (CAPGO_TOKEN)를 GitLab 프로젝트의 CI/CD 변수로 추가하십시오. GitLab에서 프로젝트를 열고, Settings > CI/CD > Variables로 이동하여 CAPGO_TOKEN 변수를 추가하고 API 키의 값을 입력하십시오.
빌드 스크립트를 프로젝트의 빌드 프로세스에 맞게 커스터마이즈하십시오. 예를 들어 npm 빌드 명령어를 변경하십시오.
결론
우리는 기술 여행에서 한 걸음 더 나아갔습니다! 현대 소프트웨어 개발에서 CICD는 중요한 요소입니다. 따라서 이 안내서가 모든 분들에게 의미가 있기를 바랍니다.
자동 빌드 및 릴리즈 앱과 GitLab을 계속 사용하십시오.
GitLab을 사용하고 계신다면 자동 빌드 및 릴리즈 앱과 GitLab을 사용하십시오. __CAPGO_KEEP_0__ CI/CD와 연결하십시오. Capgo CI/CD에서 제품 워크플로우를 연결하십시오. Capgo Native Builds에서 제품 워크플로우를 연결하십시오. Capgo Native Builds Capgo CI/CD Capgo 통합 Capgo 통합 CI/CD 통합 CI/CD 통합 구현 세부 사항에 대해 GitHub 액션 통합 GitHub 액션 통합 구현 세부 사항에 대해