Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use match to get code signing certificates #201

Open
wants to merge 58 commits into
base: develop
Choose a base branch
from

Conversation

magkue
Copy link

@magkue magkue commented Oct 29, 2024

This PR adds the retrieval of the code signing certificate via Fastlane match.

Certs are stored encrypted in a gitlab repository and managed automatically by Fastlane. The cert is shared by multiple build agents across multiple platforms. For this to be used with GitHub actions a workflow needs to be configured. The necessary environment vars (all prefixed with IOS_) are set as organization secrets. The workflow additionally should export a, for all workflows unique, BUILD_NUMBER. A example workflow for building and releasing from gitlab is linked in this PR.

I also added a new self-hosted runner that needs to be used for the workflow called ls1Agent-mac-2.ase.cit.tum.de with the label "macOS".

Workflow example from GitLab:

stages:
  - Build 🛠️
  - Release 🚀

variables:
  LANG: "en_US.UTF-8"
  LANGUAGE: "en_US.UTF-8"
  LC_ALL: "en_US.UTF-8"

build:
  stage: Build 🛠️
  script:
    - bundle update
    - bundle exec fastlane build
  artifacts:
    expire_in: 1 week
    paths:
      - ./build/*/*.ipa
      - ./build/*/*.dSYM.zip
  tags:
    - macos

release:
  stage: Release 🚀
  script:
    - bundle exec fastlane release
  when: manual # Run the release only after manual action
  needs:
    - build
  tags:
    - macos
  only:
    - main
    - develop

@magkue magkue self-assigned this Oct 29, 2024
@magkue magkue force-pushed the ci/fastlane-using-match branch from d759f2f to 351904c Compare November 12, 2024 17:38
@magkue magkue force-pushed the ci/fastlane-using-match branch from 351904c to c088245 Compare November 12, 2024 17:40
@magkue magkue force-pushed the ci/fastlane-using-match branch 2 times, most recently from 1dae0f9 to 0eb534b Compare November 19, 2024 09:46
@magkue magkue force-pushed the ci/fastlane-using-match branch from 0eb534b to afd2667 Compare November 19, 2024 09:49
@magkue magkue force-pushed the ci/fastlane-using-match branch from 04e3e6f to c0b95bb Compare November 19, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants