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

// https://buddy.works/knowledge/deployments/how-use-environment-variables#default-environment-variables
const {prNumber} = require('../lib/utils');
module.exports = {
detect({env}) {
return Boolean(env.BUDDY_WORKSPACE_ID);
},
configuration({env}) {
const pr = prNumber(env.BUDDY_EXECUTION_PULL_REQUEST_ID);
const isPr = Boolean(pr);
return {
name: 'Buddy',
service: 'buddy',
commit: env.BUDDY_EXECUTION_REVISION,
tag: env.BUDDY_EXECUTION_TAG,
build: env.BUDDY_EXECUTION_ID,
buildUrl: env.BUDDY_EXECUTION_URL,
branch: isPr ? undefined : env.BUDDY_EXECUTION_BRANCH,
pr,
isPr,
slug: env.BUDDY_REPO_SLUG,
};
},
};