Skip to content

Commit

Permalink
Adding secrets config for CI (and a8c devs) (#405)
Browse files Browse the repository at this point in the history
Co-authored-by: Olivier Halligon <[email protected]>
  • Loading branch information
etoledom and AliSoftware authored Sep 13, 2024
1 parent 70bf62b commit 47b6068
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ steps:
- label: "🛠️ Build SwiftUI Demo"
key: build_swiftui
depends_on: test
command: BUILD_NUMBER=$BUILDKITE_BUILD_NUMBER make build-demo-for-distribution-swiftui
plugins: [$CI_TOOLKIT]
command: |
install_gems
BUILD_NUMBER=$BUILDKITE_BUILD_NUMBER make build-demo-for-distribution-swiftui
artifact_paths:
- ".build/artifacts/*.ipa"
- ".build/artifacts/*.dSYM.zip"
Expand All @@ -74,7 +77,10 @@ steps:
- label: "🛠️ Build UIKit Demo"
key: build_uikit
depends_on: test
command: BUILD_NUMBER=$BUILDKITE_BUILD_NUMBER make build-demo-for-distribution-uikit
plugins: [$CI_TOOLKIT]
command: |
install_gems
BUILD_NUMBER=$BUILDKITE_BUILD_NUMBER make build-demo-for-distribution-uikit
artifact_paths:
- ".build/artifacts/*.ipa"
- ".build/artifacts/*.dSYM.zip"
Expand Down
15 changes: 15 additions & 0 deletions .configure
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"project_name": "Gravatar-SDK-iOS",
"branch": "trunk",
"pinned_hash": "1761b0a77a5371f9127c5d0575c90f938d864537",
"files_to_copy": [
{
"file": "iOS/GravatarSDK/Secrets.swift",
"destination": "Demo/Demo/Secrets.swift",
"encrypt": true
}
],
"file_dependencies": [

]
}
2 changes: 2 additions & 0 deletions .configure-files/Secrets.swift.enc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
�m�� !u*�;h�i��ftH#L(��~}H+^�*_(,�Tg ����ɥ< �g�f���.����.�l)́���Z~�O�(s9�1�_�fh� ��Վ���RR��ۇx6�]d67��:C�j2��p� �2�/ 5��"g{F}:-�H�%k�,-��&��V����~�h#�� y0=�t�Q�Y煮�h7 �ۤDl�eD!9���o������1{`|6b`M��Z�XQ��U�RT�� B�K0>�^��(l�/��Й��)��U�gI<xP{ii����=a�É$�����J�z�Ҝ�j��v��{H�r`��BX��'X���:������pm
��� ul&�P�w
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ build-demo-swiftui: bundle-install

build-demo-for-distribution: build-demo-for-distribution-swiftui build-demo-for-distribution-uikit

build-demo-for-distribution-swiftui: fetch-code-signing check-build-number
build-demo-for-distribution-swiftui: fetch-code-signing check-build-number setup-secrets
bundle exec fastlane build_demo_for_distribution \
scheme:$(SCHEME_DEMO_SWIFTUI) \
build_number:$(BUILD_NUMBER)

build-demo-for-distribution-uikit: fetch-code-signing check-build-number
build-demo-for-distribution-uikit: fetch-code-signing check-build-number setup-secrets
bundle exec fastlane build_demo_for_distribution \
scheme:$(SCHEME_DEMO_UIKIT) \
build_number:$(BUILD_NUMBER)
Expand All @@ -72,6 +72,9 @@ bundle-install:
fetch-code-signing: bundle-install
bundle exec fastlane configure_code_signing

setup-secrets: bundle-install
bundle exec fastlane run configure_apply

swiftformat: # Automatically find and fixes lint issues
swift package plugin \
--allow-writing-to-package-directory \
Expand Down

0 comments on commit 47b6068

Please sign in to comment.