2
0
Fork 0

Add hardcoded backend-protobuf submodule
continuous-integration/drone/push Build is passing Details

pull/30/head
Ambrose Chua 2019-07-03 02:41:07 +00:00 committed by Gitea
commit fd4eac4eb4
2 changed files with 16 additions and 2 deletions

View File

@ -62,6 +62,7 @@ steps:
backend-pictures: 'https://git.makerforce.io/beep/backend-pictures.git'
backend-permissions: 'https://git.makerforce.io/beep/backend-permissions.git'
backend-webrtc: 'https://git.makerforce.io/beep/backend-webrtc.git'
backend-protobuf: 'https://git.makerforce.io/beep/backend-protobuf.git'
- name: docker
image: plugins/docker
settings:
@ -102,6 +103,7 @@ steps:
backend-pictures: 'https://git.makerforce.io/beep/backend-pictures.git'
backend-permissions: 'https://git.makerforce.io/beep/backend-permissions.git'
backend-webrtc: 'https://git.makerforce.io/beep/backend-webrtc.git'
backend-protobuf: 'https://git.makerforce.io/beep/backend-protobuf.git'
- name: docker
image: plugins/docker
settings:
@ -142,6 +144,7 @@ steps:
backend-pictures: 'https://git.makerforce.io/beep/backend-pictures.git'
backend-permissions: 'https://git.makerforce.io/beep/backend-permissions.git'
backend-webrtc: 'https://git.makerforce.io/beep/backend-webrtc.git'
backend-protobuf: 'https://git.makerforce.io/beep/backend-protobuf.git'
- name: docker
image: plugins/docker
settings:
@ -182,6 +185,7 @@ steps:
backend-pictures: 'https://git.makerforce.io/beep/backend-pictures.git'
backend-permissions: 'https://git.makerforce.io/beep/backend-permissions.git'
backend-webrtc: 'https://git.makerforce.io/beep/backend-webrtc.git'
backend-protobuf: 'https://git.makerforce.io/beep/backend-protobuf.git'
- name: docker
image: plugins/docker
settings:
@ -222,6 +226,7 @@ steps:
backend-pictures: 'https://git.makerforce.io/beep/backend-pictures.git'
backend-permissions: 'https://git.makerforce.io/beep/backend-permissions.git'
backend-webrtc: 'https://git.makerforce.io/beep/backend-webrtc.git'
backend-protobuf: 'https://git.makerforce.io/beep/backend-protobuf.git'
- name: docker
image: plugins/docker
settings:
@ -262,6 +267,7 @@ steps:
backend-pictures: 'https://git.makerforce.io/beep/backend-pictures.git'
backend-permissions: 'https://git.makerforce.io/beep/backend-permissions.git'
backend-webrtc: 'https://git.makerforce.io/beep/backend-webrtc.git'
backend-protobuf: 'https://git.makerforce.io/beep/backend-protobuf.git'
- name: docker
image: plugins/docker
settings:
@ -302,6 +308,7 @@ steps:
backend-pictures: 'https://git.makerforce.io/beep/backend-pictures.git'
backend-permissions: 'https://git.makerforce.io/beep/backend-permissions.git'
backend-webrtc: 'https://git.makerforce.io/beep/backend-webrtc.git'
backend-protobuf: 'https://git.makerforce.io/beep/backend-protobuf.git'
- name: docker
image: plugins/docker
settings:
@ -342,6 +349,7 @@ steps:
backend-pictures: 'https://git.makerforce.io/beep/backend-pictures.git'
backend-permissions: 'https://git.makerforce.io/beep/backend-permissions.git'
backend-webrtc: 'https://git.makerforce.io/beep/backend-webrtc.git'
backend-protobuf: 'https://git.makerforce.io/beep/backend-protobuf.git'
- name: docker
image: plugins/docker
settings:
@ -382,6 +390,7 @@ steps:
backend-pictures: 'https://git.makerforce.io/beep/backend-pictures.git'
backend-permissions: 'https://git.makerforce.io/beep/backend-permissions.git'
backend-webrtc: 'https://git.makerforce.io/beep/backend-webrtc.git'
backend-protobuf: 'https://git.makerforce.io/beep/backend-protobuf.git'
- name: docker
image: plugins/docker
settings:
@ -420,6 +429,7 @@ steps:
backend-pictures: 'https://git.makerforce.io/beep/backend-pictures.git'
backend-permissions: 'https://git.makerforce.io/beep/backend-permissions.git'
backend-webrtc: 'https://git.makerforce.io/beep/backend-webrtc.git'
backend-protobuf: 'https://git.makerforce.io/beep/backend-protobuf.git'
- name: copy-docker-compose
image: appleboy/drone-scp
settings:

View File

@ -5,14 +5,18 @@ const yaml = require('js-yaml');
const ini = require('ini');
const gitmodules = ini.parse(fs.readFileSync('.gitmodules', 'utf-8'));
const submodules = Object.values(gitmodules).map(m => m.path);
const gitmodulepaths = Object.values(gitmodules).map(m => m.path);
/*
const folders = fs.readdirSync(cwd, { withFileTypes: true });
const dockers = folders.filter(f =>
f.isDirectory() && fs.readdirSync(path.join(cwd, f.name)).includes('Dockerfile')
).map(f => f.name);
*/
const dockers = submodules; // Assumption: All submodules have Docker. Should hold true
const submodules = gitmodulepaths.concat([
// Additional nested submodules
'backend-protobuf',
]);
const dockers = gitmodulepaths; // Assumption: All submodules have Docker. Should hold true
const submodule_override = submodules.reduce((acc, f) => {
acc[f] = 'https://git.makerforce.io/beep/' + f + '.git';