Skip to content

Commit

Permalink
Do not mount buildkite-agent when building CI image (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgolsson authored Feb 1, 2023
1 parent 0e13cac commit a224f61
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .buildkite/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,29 @@ steps:
plugins:
- EmbarkStudios/k8s#1.2.6:
image: gcr.io/kaniko-project/executor:latest
mount-buildkite-agent: false
default-secret-name: buildkite-k8s-plugin
use-agent-node-affinity: true
command:
- --destination=embarkstudios/k8s-buildkite-agent
- --context=.
- --reproducible
- --cache=true
- --cache-repo=kaniko-cache.buildkite.svc.cluster.local/kaniko/cache
- --cache-dir=$BUILDKITE_BUILD_PATH/_kaniko_cache
mount-secret:
- docker-hub-credentials:/kaniko/.docker
- name: Build and publish k8s-buildkite-agent CI-debug container image
branches: '!master'
agents:
queue: monorepo-ci
os: linux
plugins:
- EmbarkStudios/k8s#1.2.6:
image: gcr.io/kaniko-project/executor:latest
mount-buildkite-agent: false
default-secret-name: buildkite-k8s-plugin
use-agent-node-affinity: true
command:
- --destination=embarkstudios/k8s-buildkite-agent:ci-debug
- --context=.
- --reproducible
mount-secret:
- docker-hub-credentials:/kaniko/.docker
1 change: 1 addition & 0 deletions hooks/command
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ readonly bootstrap_container_log_complete_marker_file
step_container_log_complete_marker_file="$(mktemp)"
readonly step_container_log_complete_marker_file

# shellcheck disable=2317 # Shellcheck doesn't understand traps
function cleanup {
rm -f "$bootstrap_container_log_complete_marker_file" "$step_container_log_complete_marker_file"

Expand Down

0 comments on commit a224f61

Please sign in to comment.