Skip to content

Commit

Permalink
fixme: enable verbose and tracing options
Browse files Browse the repository at this point in the history
So we can see more of what's happening.
  • Loading branch information
ralphbean committed Jun 27, 2024
1 parent d3e3a21 commit 0367f18
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions task/build-vm-image/0.1/build-vm-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ spec:
#!/bin/bash
set -o verbose
set -e
set -x
# expects a config file like the following as BIB_CONFIG_FILE
#
Expand Down Expand Up @@ -80,6 +81,7 @@ spec:
#!/bin/bash
set -o verbose
set -eu
set -x
# get values stored from previous task
echo "vars file"
Expand All @@ -106,7 +108,7 @@ spec:
export SSH_ARGS="-o StrictHostKeyChecking=no"
mkdir -p scripts
echo "$BUILD_DIR"
ssh $SSH_ARGS "$SSH_HOST" mkdir -p "$BUILD_DIR/workspaces" "$BUILD_DIR/scripts" "$BUILD_DIR/tmp" "$BUILD_DIR/tekton-results"
ssh -v $SSH_ARGS "$SSH_HOST" mkdir -p "$BUILD_DIR/workspaces" "$BUILD_DIR/scripts" "$BUILD_DIR/tmp" "$BUILD_DIR/tekton-results"
rsync -ra "$HOME/.docker/" "$SSH_HOST:$BUILD_DIR/.docker/"
Expand Down Expand Up @@ -154,7 +156,7 @@ spec:
# script-push.sh script is intended run _inside_ podman on the ssh host and requires sudo
cat >scripts/script-push.sh <<REMOTESSHEOF
#!/bin/bash
set -e
set -ex
dnf -y install buildah
buildah --storage-driver=vfs manifest create "$OUTPUT_IMAGE"
Expand Down Expand Up @@ -186,7 +188,7 @@ spec:
rsync -ra scripts "$SSH_HOST:$BUILD_DIR"
rsync -ra /var/workdir/source/ "$SSH_HOST:$BUILD_DIR/workspaces/source/"
ssh $SSH_ARGS "$SSH_HOST" $BUILD_DIR/scripts/script-build.sh
ssh -v $SSH_ARGS "$SSH_HOST" $BUILD_DIR/scripts/script-build.sh
rsync -ra "$SSH_HOST:$BUILD_DIR/tekton-results/" "/tekton/results/"
volumeMounts:
Expand Down

0 comments on commit 0367f18

Please sign in to comment.