Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
658 B

  1. // https://buddy.works/knowledge/deployments/how-use-environment-variables#default-environment-variables
  2. const {prNumber} = require('../lib/utils');
  3. module.exports = {
  4. detect({env}) {
  5. return Boolean(env.BUDDY_WORKSPACE_ID);
  6. },
  7. configuration({env}) {
  8. const pr = prNumber(env.BUDDY_EXECUTION_PULL_REQUEST_ID);
  9. const isPr = Boolean(pr);
  10. return {
  11. name: 'Buddy',
  12. service: 'buddy',
  13. commit: env.BUDDY_EXECUTION_REVISION,
  14. tag: env.BUDDY_EXECUTION_TAG,
  15. build: env.BUDDY_EXECUTION_ID,
  16. buildUrl: env.BUDDY_EXECUTION_URL,
  17. branch: isPr ? undefined : env.BUDDY_EXECUTION_BRANCH,
  18. pr,
  19. isPr,
  20. slug: env.BUDDY_REPO_SLUG,
  21. };
  22. },
  23. };