Skip to content

Commit 919755d

Browse files
ci (fix): connect to minio via fqdn
Setup caddy to listen for api on port 9000
1 parent 03a567d commit 919755d

File tree

3 files changed

+37
-4
lines changed

3 files changed

+37
-4
lines changed

fastlane/Fastfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
default_platform(:ios)
22

3+
# Configure AWS SDK for MinIO (path-style addressing required)
4+
def configure_minio
5+
if ENV['AWS_ENDPOINT_URL']
6+
require 'aws-sdk-s3'
7+
Aws.config.update(
8+
endpoint: ENV['AWS_ENDPOINT_URL'],
9+
force_path_style: true,
10+
region: 'us-east-1'
11+
)
12+
UI.message("Configured AWS SDK for MinIO: #{ENV['AWS_ENDPOINT_URL']}")
13+
end
14+
end
15+
316
ROOT_DIR = File.expand_path("..", __dir__)
417
XCODEPROJ = "#{ROOT_DIR}/src-tauri/gen/apple/lunch.xcodeproj"
518
APP_IDENTIFIER = "com.lunch.desktop"
@@ -29,11 +42,13 @@ end
2942
platform :ios do
3043
desc "Sync code signing certificates"
3144
lane :certificates do
45+
configure_minio
3246
match(type: "appstore", readonly: true)
3347
end
3448

3549
desc "Build and upload to TestFlight"
3650
lane :beta do
51+
configure_minio
3752
match(type: "appstore")
3853

3954
# Configure Xcode project signing before Tauri build
@@ -92,6 +107,7 @@ platform :ios do
92107

93108
desc "Upload to App Store"
94109
lane :release do
110+
configure_minio
95111
match(type: "appstore")
96112

97113
# Configure Xcode project signing before Tauri build

fastlane/Matchfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
storage_mode("s3")
22
s3_bucket("ios-certificates")
33
s3_region("us-east-1")
4-
s3_endpoint("http://minio.nwcrane.com:9000")
54

65
type("appstore")
76
app_identifier("com.lunch.desktop")

fastlane/report.xml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,32 @@
55

66

77

8-
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000193">
8+
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000155">
99

1010
</testcase>
1111

1212

13-
<testcase classname="fastlane.lanes" name="1: match" time="2.220091">
13+
<testcase classname="fastlane.lanes" name="1: match" time="5.395907">
1414

15-
<failure message="/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/fastlane-2.229.1/fastlane/lib/fastlane/actions/actions_helper.rb:67:in &apos;Fastlane::Actions.execute_action&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/fastlane-2.229.1/fastlane/lib/fastlane/runner.rb:255:in &apos;block in Fastlane::Runner#execute_action&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/fastlane-2.229.1/fastlane/lib/fastlane/runner.rb:229:in &apos;Dir.chdir&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/fastlane-2.229.1/fastlane/lib/fastlane/runner.rb:229:in &apos;Fastlane::Runner#execute_action&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/fastlane-2.229.1/fastlane/lib/fastlane/runner.rb:157:in &apos;Fastlane::Runner#trigger_action_by_name&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/fastlane-2.229.1/fastlane/lib/fastlane/fast_file.rb:159:in &apos;Fastlane::FastFile#method_missing&apos;&#10;Fastfile:37:in &apos;block (2 levels) in Fastlane::FastFile#parsing_binding&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/fastlane-2.229.1/fastlane/lib/fastlane/lane.rb:41:in &apos;Fastlane::Lane#call&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/fastlane-2.229.1/fastlane/lib/fastlane/runner.rb:49:in &apos;block in Fastlane::Runner#execute&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/fastlane-2.229.1/fastlane/lib/fastlane/runner.rb:45:in &apos;Dir.chdir&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/fastlane-2.229.1/fastlane/lib/fastlane/runner.rb:45:in &apos;Fastlane::Runner#execute&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/fastlane-2.229.1/fastlane/lib/fastlane/lane_manager.rb:46:in &apos;Fastlane::LaneManager.cruise_lane&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/fastlane-2.229.1/fastlane/lib/fastlane/command_line_handler.rb:34:in &apos;Fastlane::CommandLineHandler.handle&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/fastlane-2.229.1/fastlane/lib/fastlane/commands_generator.rb:110:in &apos;block (2 levels) in Fastlane::CommandsGenerator#run&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/commander-4.6.0/lib/commander/command.rb:187:in &apos;Commander::Command#call&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/commander-4.6.0/lib/commander/command.rb:157:in &apos;Commander::Command#run&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/commander-4.6.0/lib/commander/runner.rb:444:in &apos;Commander::Runner#run_active_command&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/fastlane-2.229.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in &apos;Commander::Runner#run!&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/commander-4.6.0/lib/commander/delegates.rb:18:in &apos;Commander::Delegates#run!&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/fastlane-2.229.1/fastlane/lib/fastlane/commands_generator.rb:363:in &apos;Fastlane::CommandsGenerator#run&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/fastlane-2.229.1/fastlane/lib/fastlane/commands_generator.rb:43:in &apos;Fastlane::CommandsGenerator.start&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/fastlane-2.229.1/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in &apos;Fastlane::CLIToolsDistributor.take_off&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/gems/fastlane-2.229.1/bin/fastlane:23:in &apos;&lt;top (required)&gt;&apos;&#10;/opt/homebrew/Cellar/ruby/3.4.7/lib/ruby/3.4.0/rubygems.rb:319:in &apos;Kernel#load&apos;&#10;/opt/homebrew/Cellar/ruby/3.4.7/lib/ruby/3.4.0/rubygems.rb:319:in &apos;Gem.activate_and_load_bin_path&apos;&#10;/opt/homebrew/Cellar/fastlane/2.229.1/libexec/bin/fastlane:25:in &apos;&lt;main&gt;&apos;&#10;&#10;Failed to open TCP connection to 10.5.162.10:9000 (Connection refused - connect(2) for &quot;10.5.162.10&quot; port 9000)" />
15+
</testcase>
16+
17+
18+
<testcase classname="fastlane.lanes" name="2: update_code_signing_settings" time="0.026128">
19+
20+
</testcase>
21+
22+
23+
<testcase classname="fastlane.lanes" name="3: cd /Users/lance/git/lunchjs/src-tauri &amp;&amp; npx tauri ios build --export-method app-store-connect" time="16.666599">
24+
25+
</testcase>
26+
27+
28+
<testcase classname="fastlane.lanes" name="4: app_store_connect_api_key" time="0.001332">
29+
30+
</testcase>
31+
32+
33+
<testcase classname="fastlane.lanes" name="5: upload_to_testflight" time="27.603293">
1634

1735
</testcase>
1836

0 commit comments

Comments
 (0)