Skip to content

Commit 95c4602

Browse files
authored
fix: Add log to gulp and rebase before build images (kyma-project#4194)
* add log to gulp and rebase before build * fix gulp * fix gulp
1 parent fa910bb commit 95c4602

File tree

4 files changed

+32
-13
lines changed

4 files changed

+32
-13
lines changed

.github/workflows/busola-backend-build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ permissions:
2626
contents: read # This is required for actions/checkout
2727

2828
jobs:
29+
rebase:
30+
if: github.event.pull_request.draft == false
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Merge with latest main
34+
uses: ./.github/actions/merge
2935
build-backend-image:
3036
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
3137
if: github.event.pull_request.draft == false

.github/workflows/busola-build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121
- "Dockerfile"
2222
- "nginx/nginx.conf"
2323
pull_request_target:
24-
types: [opened, edited, synchronize, reopened, ready_for_review]
24+
types: [ opened, edited, synchronize, reopened, ready_for_review ]
2525
paths:
2626
- ".github/workflows/busola-build.yml"
2727
- "kyma/**"
@@ -41,6 +41,12 @@ permissions:
4141
contents: read # This is required for actions/checkout
4242

4343
jobs:
44+
rebase:
45+
runs-on: ubuntu-latest
46+
if: github.event.pull_request.draft == false
47+
steps:
48+
- name: Merge with latest main
49+
uses: ./.github/actions/merge
4450
build-busola-image:
4551
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
4652
if: github.event.pull_request.draft == false

.github/workflows/busola-web-build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ permissions:
3636
contents: read # This is required for actions/checkout
3737

3838
jobs:
39+
rebase:
40+
runs-on: ubuntu-latest
41+
if: github.event.pull_request.draft == false
42+
steps:
43+
- name: Merge with latest main
44+
uses: ./.github/actions/merge
3945
build-web-image:
4046
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
4147
if: github.event.pull_request.draft == false

kyma/gulpfile.js

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import fetch from 'node-fetch';
22
import { URL } from 'url';
3-
import { readFile, lstatSync, readdirSync } from 'fs';
4-
import { load, dump } from 'js-yaml';
3+
import { lstatSync, readdirSync, readFile } from 'fs';
4+
import { dump, load } from 'js-yaml';
55

6-
import { task, src, dest } from 'gulp';
6+
import { dest, src, task } from 'gulp';
77
import { obj as _obj } from 'through2';
88
import concat from 'gulp-concat';
99
import clean from 'gulp-clean';
@@ -71,6 +71,7 @@ const loadExtensions = _obj(async function(extensionsFile, _, cb) {
7171
});
7272

7373
const loadPreparedExtensions = _obj((file, _, cb) => {
74+
console.log('Loading:', file.history);
7475
const convertYamlToObject = yamlString => {
7576
return load(yamlString, { json: true });
7677
};
@@ -99,9 +100,9 @@ const loadPreparedExtensions = _obj((file, _, cb) => {
99100
task('clean-extensions', () => {
100101
const env = process.env.ENV;
101102
return src(`environments/temp/${env}/extensions-local`, {
102-
read: false,
103-
allowEmpty: true,
104-
})
103+
read: false,
104+
allowEmpty: true,
105+
})
105106
.pipe(clean({ force: true }));
106107
});
107108

@@ -126,9 +127,9 @@ task('pack-extensions', () => {
126127
task('clean-statics', () => {
127128
const env = process.env.ENV;
128129
return src(`environments/temp/${env}/extensions/statics-local`, {
129-
read: false,
130-
allowEmpty: true,
131-
})
130+
read: false,
131+
allowEmpty: true,
132+
})
132133
.pipe(clean());
133134
});
134135

@@ -153,9 +154,9 @@ task('pack-statics', () => {
153154
task('clean-wizards', () => {
154155
const env = process.env.ENV;
155156
return src(`environments/temp/${env}/extensions/wizards-local`, {
156-
read: false,
157-
allowEmpty: true,
158-
})
157+
read: false,
158+
allowEmpty: true,
159+
})
159160
.pipe(clean());
160161
});
161162

0 commit comments

Comments
 (0)