메인 콘텐츠로 건너뛰기
CI/CD

GitLab과 함께 자동 빌드 및 릴리즈 앱

GitLab을 사용하여 무료로 CI/CD pipeline을 생성하고 Ionic Capacitor JS 앱을 매번 메인으로 푸시할 때마다 배포하세요.

Anik Dhabal Babu

Anik Dhabal Babu

컨텐츠 마케터

GitLab과 함께 자동 빌드 및 릴리즈 앱

이 글에서는 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 액션 통합 구현 세부 사항에 대해

Capacitor 앱에 대한 즉시 업데이트

When a web-layer bug is live, ship the fix through Capgo instead of waiting days for app store approval. Users get the update in the background while native changes stay in the normal review path.

웹 레이어 버그가 활성화된 경우, 앱 스토어 승인 대기 없이 __CAPGO_KEEP_0__를 통해 패치를 배포하세요. 사용자는 배경에서 업데이트를 받으며 네이티브 변경 사항은 일반적인 검토 경로에 남아 있습니다.

컨텍스트: Capgo 마케팅 웹사이트. 역할: 지원 설명 문장 또는 메타 설명. 보는 곳: 컴포넌트 GetStarted.astro. Capgo 제품/브랜드 및 개발자 용어를 정확하게 유지하세요. 메시지 키 `instant_updates_for_capacitor_apps_description` (Capacitor 앱에 대한 즉시 업데이트 설명)

마틴의 인간 지원

Capgo gives you the best insights you need to create a truly professional mobile app.