Visual hotfixes & CI/CD
Build & Push Docker Images / test-backend (push) Successful in 22s
Build & Push Docker Images / test-frontend (push) Successful in 23s
Build & Push Docker Images / build-backend (push) Successful in 18s
Build & Push Docker Images / build-frontend (push) Successful in 30s
Build & Push Docker Images / test-backend (push) Successful in 22s
Build & Push Docker Images / test-frontend (push) Successful in 23s
Build & Push Docker Images / build-backend (push) Successful in 18s
Build & Push Docker Images / build-frontend (push) Successful in 30s
This commit is contained in:
+20
-22
@@ -20,13 +20,12 @@ trigger_map:
|
||||
workflow: deploy_android
|
||||
|
||||
workflows:
|
||||
# ── Shared setup ──────────────────────────────────────────
|
||||
_setup:
|
||||
steps:
|
||||
- activate-ssh-key@4:
|
||||
- activate-ssh-key@5:
|
||||
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
|
||||
- git-clone@8: {}
|
||||
- nvm@1:
|
||||
- git-clone@9: {}
|
||||
- setup-node@1:
|
||||
inputs:
|
||||
- node_version: "20"
|
||||
- script@1:
|
||||
@@ -35,11 +34,10 @@ workflows:
|
||||
- content: |
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
npm install
|
||||
npm install --prefix frontend
|
||||
npm ci
|
||||
npm ci --prefix frontend
|
||||
npm run build --prefix frontend
|
||||
|
||||
# ── Android test / PR build ──────────────────────────────
|
||||
test:
|
||||
before_run:
|
||||
- _setup
|
||||
@@ -61,14 +59,13 @@ workflows:
|
||||
"platforms;android-36" \
|
||||
"build-tools;36.0.0" \
|
||||
"platform-tools" || true
|
||||
- android-build@1:
|
||||
- android-build@2:
|
||||
title: Build Android APK (debug)
|
||||
inputs:
|
||||
- project_location: android
|
||||
- module: app
|
||||
- variant: debug
|
||||
|
||||
# ── iOS test / PR build (simulator) ──────────────────────
|
||||
test_ios:
|
||||
before_run:
|
||||
- _setup
|
||||
@@ -83,7 +80,7 @@ workflows:
|
||||
- cocoapods-install@2:
|
||||
inputs:
|
||||
- podfile_path: ios/App/Podfile
|
||||
- xcode-archive@4:
|
||||
- xcode-archive@5:
|
||||
title: Build iOS (simulator)
|
||||
inputs:
|
||||
- project_path: ios/App/App.xcodeproj
|
||||
@@ -93,7 +90,6 @@ workflows:
|
||||
- output_tool: xcodebuild
|
||||
- cache_level: swift
|
||||
|
||||
# ── iOS deploy ───────────────────────────────────────────
|
||||
deploy_ios:
|
||||
before_run:
|
||||
- _setup
|
||||
@@ -109,7 +105,7 @@ workflows:
|
||||
inputs:
|
||||
- podfile_path: ios/App/Podfile
|
||||
- certificate-and-profile-installer@1: {}
|
||||
- xcode-archive@4:
|
||||
- xcode-archive@5:
|
||||
title: Archive iOS (release)
|
||||
inputs:
|
||||
- project_path: ios/App/App.xcodeproj
|
||||
@@ -119,9 +115,8 @@ workflows:
|
||||
- output_tool: xcodebuild
|
||||
- export_method: app-store
|
||||
- cache_level: swift
|
||||
- deploy-to-bitrise-io@2: {}
|
||||
- deploy-to-bitrise-io@4: {}
|
||||
|
||||
# ── Android deploy ───────────────────────────────────────
|
||||
deploy_android:
|
||||
before_run:
|
||||
- _setup
|
||||
@@ -143,20 +138,21 @@ workflows:
|
||||
"platforms;android-36" \
|
||||
"build-tools;36.0.0" \
|
||||
"platform-tools" || true
|
||||
- android-build@1:
|
||||
- android-build@2:
|
||||
title: Build Android AAB (release)
|
||||
inputs:
|
||||
- project_location: android
|
||||
- module: app
|
||||
- variant: release
|
||||
- deploy-to-bitrise-io@2: {}
|
||||
- sign-apk@1:
|
||||
inputs:
|
||||
- use_apk_signer: "true"
|
||||
- deploy-to-bitrise-io@4: {}
|
||||
|
||||
# ── Combined deploy (default branch push) ────────────────
|
||||
deploy:
|
||||
before_run:
|
||||
- _setup
|
||||
steps:
|
||||
# Android
|
||||
- script@1:
|
||||
title: Sync Android native project
|
||||
inputs:
|
||||
@@ -174,13 +170,15 @@ workflows:
|
||||
"platforms;android-36" \
|
||||
"build-tools;36.0.0" \
|
||||
"platform-tools" || true
|
||||
- android-build@1:
|
||||
- android-build@2:
|
||||
title: Build Android AAB (release)
|
||||
inputs:
|
||||
- project_location: android
|
||||
- module: app
|
||||
- variant: release
|
||||
# iOS
|
||||
- sign-apk@1:
|
||||
inputs:
|
||||
- use_apk_signer: "true"
|
||||
- script@1:
|
||||
title: Sync iOS native project
|
||||
inputs:
|
||||
@@ -192,7 +190,7 @@ workflows:
|
||||
inputs:
|
||||
- podfile_path: ios/App/Podfile
|
||||
- certificate-and-profile-installer@1: {}
|
||||
- xcode-archive@4:
|
||||
- xcode-archive@5:
|
||||
title: Archive iOS (release)
|
||||
inputs:
|
||||
- project_path: ios/App/App.xcodeproj
|
||||
@@ -202,4 +200,4 @@ workflows:
|
||||
- output_tool: xcodebuild
|
||||
- export_method: app-store
|
||||
- cache_level: swift
|
||||
- deploy-to-bitrise-io@2: {}
|
||||
- deploy-to-bitrise-io@4: {}
|
||||
Reference in New Issue
Block a user