mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 01:22:54 +00:00
refactor: handle ssh secrets as base64 encoded
This commit is contained in:
@@ -13,38 +13,38 @@
|
||||
# Uncomment the line if you want fastlane to automatically update itself
|
||||
# update_fastlane
|
||||
|
||||
require 'json'
|
||||
require 'base64'
|
||||
|
||||
default_platform(:ios)
|
||||
|
||||
current_build_number = 1
|
||||
package_json = JSON.parse(File.read('../../../package.json'))
|
||||
|
||||
api_key = app_store_connect_api_key(
|
||||
key_id: ENV['APPLE_API_KEY_ID'],
|
||||
issuer_id: ENV['APPLE_API_KEY_ISSUER_ID'],
|
||||
key_content: "#{Base64.decode64(ENV['APPLE_API_KEY_CONTENT'])}".gsub('\n', '\\n'),
|
||||
in_house: false
|
||||
)
|
||||
|
||||
platform :ios do
|
||||
|
||||
lane :fetch_highest_build_number do
|
||||
build_number_candidates = [1]
|
||||
build_number_candidates << latest_testflight_build_number(
|
||||
version: package_json['version'],
|
||||
initial_build_number: 1,
|
||||
app_identifier: ENV['IOS_BUNDLE_IDENTIFIER'],
|
||||
api_key: api_key
|
||||
)
|
||||
build_number_candidates << app_store_build_number(
|
||||
version: package_json['version'],
|
||||
initial_build_number: 1,
|
||||
app_identifier: ENV['IOS_BUNDLE_IDENTIFIER'],
|
||||
api_key: api_key
|
||||
)
|
||||
current_build_number = build_number_candidates.max
|
||||
require 'json'
|
||||
require 'base64'
|
||||
|
||||
default_platform(:ios)
|
||||
|
||||
current_build_number = 1
|
||||
package_json = JSON.parse(File.read('../../../package.json'))
|
||||
|
||||
api_key = app_store_connect_api_key(
|
||||
key_id: ENV['APPLE_API_KEY_ID'],
|
||||
issuer_id: ENV['APPLE_API_KEY_ISSUER_ID'],
|
||||
key_content: "#{Base64.decode64(ENV['APPLE_API_KEY_CONTENT'])}".gsub('\n', '\\n'),
|
||||
in_house: false
|
||||
)
|
||||
|
||||
platform :ios do
|
||||
|
||||
lane :fetch_highest_build_number do
|
||||
build_number_candidates = [1]
|
||||
build_number_candidates << latest_testflight_build_number(
|
||||
version: package_json['version'],
|
||||
initial_build_number: 1,
|
||||
app_identifier: ENV['IOS_BUNDLE_IDENTIFIER'],
|
||||
api_key: api_key
|
||||
)
|
||||
build_number_candidates << app_store_build_number(
|
||||
version: package_json['version'],
|
||||
initial_build_number: 1,
|
||||
app_identifier: ENV['IOS_BUNDLE_IDENTIFIER'],
|
||||
api_key: api_key
|
||||
)
|
||||
current_build_number = build_number_candidates.max
|
||||
end
|
||||
|
||||
lane :configure do
|
||||
|
||||
Reference in New Issue
Block a user