Skip to content

A Github Action to deploy your branchs automatically in your Based.io account

License

Notifications You must be signed in to change notification settings

atelier-saulx/based-deploy

Repository files navigation

Based.io Deploy

Deploy your branch easily in your Based.io account using this GitHub Action.

Inputs

userID (as an 'env' variable)

Required The user ID created on the Based.io dashboard.

apiKey (as an 'env' variable)

Required The secret token for authentication with the Based.io API.

size (as input parameter)

Not Required The size of the environment, can be 'small' or 'large'. The default is 'small'.

region (as input parameter)

Not Required In which region would you like to spawn the environment? You can choose between 'eu-central-1', 'sa-east-1', 'us-east-1', 'us-west-1', 'ap-southeast-2'. The default is 'eu-central-1'.

Outputs

response

A Success/Error message containing the Based CLI output.

Example usage

  • Login into your account at Based.io dashboard. After to create your first organization (in this case 'github-actions'), click on 'New Project' and choose a name (in this case 'demo') and create your first environment.

  • Go to 'Settings' and click on your organization's name and then click on 'Service accounts'. After click on 'Create new service account'.

  • Give a name to your service account and select a role to your project. You can choose between 'admin' and 'viewer' (in this case, you need to set 'admin'), check the option 'Organization admin', and then click on 'Create service account'.

  • You'll see your User ID and the API key. Pay attention you can only see this information once, so click on both to copy to your clipboard and store safely this information and then click on Exit.

  • Your dashboard will update with your new service account created. Now you can use this action passing the information to the workflow.
  • Note that you must use 'userID' and 'apiKey' as the env's variable's names.
    uses: atelier-saulx/based-deploy@v1.3.12
    with:
      userID: ${{ secrets.BASED_USER_ID }}
      apiKey: ${{ secrets.BASED_API_KEY }}
      size: small
      region: eu-central-1

About

A Github Action to deploy your branchs automatically in your Based.io account

Resources

License

Stars

Watchers

Forks

Packages

No packages published