Skip to content

Deploy to DeployGate

noboru ISHIKURA(JP) edited this page Mar 13, 2018 · 1 revision

Prerequisites

Creating DeployGate account.

Please get "API key" from profile page.

Setting

1. setup Fastfile

Please refer to https://docs.fastlane.tools/actions/deploygate/ and https://docs.deploygate.com/v1.2/docs/fastlane

Sample:Fastfile

desc "Upload to DeployGate"
lane :deploygate do
  build_app( ...
  deploygate(
    user: 'user name or group name', # or set as DEPLOYGATE_USER to environment variable.
    message: "Fastlane build #{lane_context[SharedValues::BUILD_NUMBER]}",
  )
end

2. setup CircleCI config

Add bundle exec fastlane deploygate into .circleci/config.yml.

e.g. If you want to publish to deploygate when changed master branch,

  deploy:
    <<: *defaults
    steps:
      - attach_workspace:
          at: /Users/distiller/project
      - run:
          name: Upload to DeployGate
          command: bundle exec fastlane deploygate

workflows:
  version: 2
  build_and_deploy:
    jobs:
      - build
      - deploy:
          requires:
            - build
          filters:
            branches:
              only: master

3. setup CircleCI environment variable

Please set environment variable to repository setting page. https://circleci.com/gh/[owner]/[repository name]/edit#env-vars

  • DEPLOYGATE_API_TOKEN: API key from profile page.
Clone this wiki locally