Skip to content

mskg/expo-azure-devops-approvalgate

Repository files navigation

expo-azure-devops-approvalgate

Building expo projects using the default service can take quite a while. This project contains a VSTS deployment gate running on AWS that waits for the build webhook to be triggered.

Deploy

  1. yarn
  2. WEBHOOK_SECRET=SECRET yarn run deploy

Configure Expo

expo webhooks:set --url <URL> --event build --secret <SECRET>

Configure DevOps

  1. Create generic Service Connection
  2. API Url /dev/register
  3. Add a gate using the service connection
  4. Headers
    {
        "Content-Type":"application/json", 
        "x-api-key": "<YOUR API KEY>"
    }
    
  5. Body
    {
        "PlanUrl": "$(system.CollectionUri)", 
        "ProjectId": "$(system.TeamProjectId)", 
        "HubName": "$(system.HostType)", 
        "PlanId": "$(system.PlanId)", 
        "JobId": "$(system.JobId)", 
        "TimelineId": "$(system.TimelineId)", 
        "TaskInstanceId": "$(system.TaskInstanceId)", 
        "AuthToken": "$(system.AccessToken)",
        "BuildUrl": "<URL FROM EXPO>"
    }
    

About

Azure DevOps Approval Gate for Expo Build Web Hooks

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published