Skip to content

Commit

Permalink
feat: increase image build timeout and remove drone check
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorwhitney committed Feb 20, 2024
1 parent d06401b commit 7c04bd9
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 170 deletions.
39 changes: 0 additions & 39 deletions .drone/drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ local querytee() = pipeline('querytee-amd64') + arch_image('amd64', 'main') {
},
},
],
depends_on: ['check'],
};

local fluentbit(arch) = pipeline('fluent-bit-' + arch) + arch_image(arch) {
Expand All @@ -200,7 +199,6 @@ local fluentbit(arch) = pipeline('fluent-bit-' + arch) + arch_image(arch) {
},
},
],
depends_on: ['check'],
};

local fluentd() = pipeline('fluentd-amd64') + arch_image('amd64', 'main') {
Expand All @@ -214,7 +212,6 @@ local fluentd() = pipeline('fluentd-amd64') + arch_image('amd64', 'main') {
},
},
],
depends_on: ['check'],
};

local logstash() = pipeline('logstash-amd64') + arch_image('amd64', 'main') {
Expand All @@ -228,7 +225,6 @@ local logstash() = pipeline('logstash-amd64') + arch_image('amd64', 'main') {
},
},
],
depends_on: ['check'],
};

local promtail(arch) = pipeline('promtail-' + arch) + arch_image(arch) {
Expand All @@ -240,7 +236,6 @@ local promtail(arch) = pipeline('promtail-' + arch) + arch_image(arch) {
settings+: {},
},
],
depends_on: ['check'],
};

local lambda_promtail(arch) = pipeline('lambda-promtail-' + arch) + arch_image(arch) {
Expand All @@ -255,7 +250,6 @@ local lambda_promtail(arch) = pipeline('lambda-promtail-' + arch) + arch_image(a
settings+: {},
},
],
depends_on: ['check'],
};

local lokioperator(arch) = pipeline('lokioperator-' + arch) + arch_image(arch) {
Expand All @@ -269,7 +263,6 @@ local lokioperator(arch) = pipeline('lokioperator-' + arch) + arch_image(arch) {
settings+: {},
},
],
depends_on: ['check'],
};

local logql_analyzer() = pipeline('logql-analyzer') + arch_image('amd64') {
Expand All @@ -283,7 +276,6 @@ local logql_analyzer() = pipeline('logql-analyzer') + arch_image('amd64') {
},
},
],
depends_on: ['check'],
};

local multiarch_image(arch) = pipeline('docker-' + arch) + arch_image(arch) {
Expand All @@ -296,7 +288,6 @@ local multiarch_image(arch) = pipeline('docker-' + arch) + arch_image(arch) {
}
for app in apps
],
depends_on: ['check'],
};

local manifest(apps) = pipeline('manifest') {
Expand Down Expand Up @@ -483,36 +474,6 @@ local build_image_tag = '0.33.0';
},
],
},
pipeline('check') {
workspace: {
base: '/src',
path: 'loki',
},
steps: [
make('check-generated-files', container=false) { depends_on: ['clone'] },
run('clone-target-branch', commands=[
'cd ..',
'echo "cloning "$DRONE_TARGET_BRANCH ',
'git clone -b $DRONE_TARGET_BRANCH $CI_REPO_REMOTE loki-target-branch',
'cd -',
]) { depends_on: ['clone'], when: onPRs },
make('check-doc', container=false) { depends_on: ['loki'] },
make('loki', container=false) { depends_on: ['check-generated-files'] },
make('check-format', container=false, args=[
'GIT_TARGET_BRANCH="$DRONE_TARGET_BRANCH"',
]) { depends_on: ['loki'], when: onPRs },
make('validate-dev-cluster-config', container=false) { depends_on: ['validate-example-configs'] },
{
name: 'build-docs-website',
image: 'grafana/docs-base:e6ef023f8b8',
commands: [
'mkdir -p /hugo/content/docs/loki/latest',
'cp -r docs/sources/* /hugo/content/docs/loki/latest/',
'cd /hugo && make prod',
],
},
],
},
pipeline('mixins') {
workspace: {
base: '/src',
Expand Down
108 changes: 1 addition & 107 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,76 +132,6 @@ workspace:
path: loki
---
kind: pipeline
name: check
steps:
- commands:
- make BUILD_IN_CONTAINER=false check-generated-files
depends_on:
- clone
environment: {}
image: grafana/loki-build-image:0.33.0
name: check-generated-files
- commands:
- cd ..
- 'echo "cloning "$DRONE_TARGET_BRANCH '
- git clone -b $DRONE_TARGET_BRANCH $CI_REPO_REMOTE loki-target-branch
- cd -
depends_on:
- clone
environment: {}
image: grafana/loki-build-image:0.33.0
name: clone-target-branch
when:
event:
- pull_request
- commands:
- make BUILD_IN_CONTAINER=false check-doc
depends_on:
- loki
environment: {}
image: grafana/loki-build-image:0.33.0
name: check-doc
- commands:
- make BUILD_IN_CONTAINER=false loki
depends_on:
- check-generated-files
environment: {}
image: grafana/loki-build-image:0.33.0
name: loki
- commands:
- make BUILD_IN_CONTAINER=false check-format GIT_TARGET_BRANCH="$DRONE_TARGET_BRANCH"
depends_on:
- loki
environment: {}
image: grafana/loki-build-image:0.33.0
name: check-format
when:
event:
- pull_request
- commands:
- make BUILD_IN_CONTAINER=false validate-dev-cluster-config
depends_on:
- validate-example-configs
environment: {}
image: grafana/loki-build-image:0.33.0
name: validate-dev-cluster-config
- commands:
- mkdir -p /hugo/content/docs/loki/latest
- cp -r docs/sources/* /hugo/content/docs/loki/latest/
- cd /hugo && make prod
image: grafana/docs-base:e6ef023f8b8
name: build-docs-website
trigger:
ref:
- refs/heads/main
- refs/heads/k???
- refs/tags/v*
- refs/pull/*/head
workspace:
base: /src
path: loki
---
kind: pipeline
name: mixins
steps:
- commands:
Expand Down Expand Up @@ -253,8 +183,6 @@ workspace:
base: /src
path: loki
---
depends_on:
- check
kind: pipeline
name: docker-amd64
platform:
Expand Down Expand Up @@ -338,8 +266,6 @@ trigger:
- refs/tags/v*
- refs/pull/*/head
---
depends_on:
- check
kind: pipeline
name: docker-arm64
platform:
Expand Down Expand Up @@ -423,8 +349,6 @@ trigger:
- refs/tags/v*
- refs/pull/*/head
---
depends_on:
- check
kind: pipeline
name: docker-arm
platform:
Expand Down Expand Up @@ -508,8 +432,6 @@ trigger:
- refs/tags/v*
- refs/pull/*/head
---
depends_on:
- check
kind: pipeline
name: promtail-amd64
platform:
Expand Down Expand Up @@ -545,8 +467,6 @@ trigger:
- refs/tags/v*
- refs/pull/*/head
---
depends_on:
- check
kind: pipeline
name: promtail-arm64
platform:
Expand Down Expand Up @@ -582,8 +502,6 @@ trigger:
- refs/tags/v*
- refs/pull/*/head
---
depends_on:
- check
kind: pipeline
name: promtail-arm
platform:
Expand Down Expand Up @@ -619,8 +537,6 @@ trigger:
- refs/tags/v*
- refs/pull/*/head
---
depends_on:
- check
kind: pipeline
name: lokioperator-amd64
platform:
Expand Down Expand Up @@ -659,8 +575,6 @@ trigger:
- refs/tags/operator/v*
- refs/pull/*/head
---
depends_on:
- check
kind: pipeline
name: lokioperator-arm64
platform:
Expand Down Expand Up @@ -699,8 +613,6 @@ trigger:
- refs/tags/operator/v*
- refs/pull/*/head
---
depends_on:
- check
kind: pipeline
name: lokioperator-arm
platform:
Expand Down Expand Up @@ -739,8 +651,6 @@ trigger:
- refs/tags/operator/v*
- refs/pull/*/head
---
depends_on:
- check
kind: pipeline
name: fluent-bit-amd64
platform:
Expand Down Expand Up @@ -776,8 +686,6 @@ trigger:
- refs/tags/v*
- refs/pull/*/head
---
depends_on:
- check
kind: pipeline
name: fluent-bit-arm64
platform:
Expand Down Expand Up @@ -813,8 +721,6 @@ trigger:
- refs/tags/v*
- refs/pull/*/head
---
depends_on:
- check
kind: pipeline
name: fluent-bit-arm
platform:
Expand Down Expand Up @@ -850,8 +756,6 @@ trigger:
- refs/tags/v*
- refs/pull/*/head
---
depends_on:
- check
kind: pipeline
name: fluentd-amd64
platform:
Expand Down Expand Up @@ -888,8 +792,6 @@ trigger:
- refs/tags/v*
- refs/pull/*/head
---
depends_on:
- check
kind: pipeline
name: logstash-amd64
platform:
Expand Down Expand Up @@ -926,8 +828,6 @@ trigger:
- refs/tags/v*
- refs/pull/*/head
---
depends_on:
- check
kind: pipeline
name: querytee-amd64
platform:
Expand Down Expand Up @@ -1191,8 +1091,6 @@ trigger:
- refs/tags/v*
- refs/pull/*/head
---
depends_on:
- check
kind: pipeline
name: logql-analyzer
platform:
Expand Down Expand Up @@ -1261,8 +1159,6 @@ volumes:
path: /var/run/docker.sock
name: docker
---
depends_on:
- check
kind: pipeline
name: lambda-promtail-amd64
platform:
Expand Down Expand Up @@ -1311,8 +1207,6 @@ trigger:
- refs/tags/v*
- refs/pull/*/head
---
depends_on:
- check
kind: pipeline
name: lambda-promtail-arm64
platform:
Expand Down Expand Up @@ -1468,6 +1362,6 @@ kind: secret
name: gpg_private_key
---
kind: signature
hmac: 66d587f7e6384dfb9439b147269b517b93fe6752d9667a4a61f7a3b8290b0c3f
hmac: 32b44aecaad0258ed9494225595e1016a56bea960bcd0b15b2db3449bed957e0

...
4 changes: 2 additions & 2 deletions .github/jsonnetfile.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"subdir": "workflows"
}
},
"version": "0441bf5cbf5955142e942cbbbdf68fca0faa4c4a",
"sum": "pUHtz3SQ7p22Y9vkjxCsnNr57N+FDfubpGgDIe+Mzaw="
"version": "40ee4940603c906ce4af96c898dd4a5cd0fca2d5",
"sum": "jvOGy42cFuFi3CxcdXyOm8Xju2pjRPuevtarfNJFqpc="
}
],
"legacyImports": false
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7c04bd9

Please sign in to comment.