Skip to content

Commit

Permalink
[ci] Verify docker contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz committed Jan 12, 2022
1 parent a39bca4 commit d427325
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .buildkite/pipelines/pull_request/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ steps:
- exit_status: '*'
limit: 1

# Move to hourly
- command: .buildkite/scripts/steps/docker_context/build.sh
label: 'Docker Build Context'
agents:
queue: n2-4
timeout_in_minutes: 30
key: build-docker-context
retry:
automatic:
- exit_status: '*'
limit: 1

- command: CI_GROUP=Docker .buildkite/scripts/steps/functional/xpack_cigroup.sh
label: 'Docker CI Group'
agents:
Expand Down
15 changes: 15 additions & 0 deletions .buildkite/scripts/steps/docker_context/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

set -euo pipefail

echo "--- Create Kibana Docker contexts"
node scripts/build --skip-initialize --skip-generic-folders --skip-platform-folders --skip-archives

DOCKER_BUILD_FOLDER=$(mktemp)

tar -xf target/kibana-[0-9]*-docker-build-context.tar.gz -C "$DOCKER_BUILD_FOLDER"

cd $DOCKER_BUILD_FOLDER

echo "--- Build default context"
docker build .

0 comments on commit d427325

Please sign in to comment.