Nicolas Massé 2 months ago
parent
commit
79b4d4c0de
  1. 2
      tekton/common/task-buildah-build.yaml

2
tekton/common/task-buildah-build.yaml

@ -94,11 +94,11 @@ spec:
BUILDAH_OPTS+=( "-f" "$(workspaces.source-workspace.path)/$(params.containerfile-path)" ) BUILDAH_OPTS+=( "-f" "$(workspaces.source-workspace.path)/$(params.containerfile-path)" )
BUILDAH_OPTS+=( "--no-cache" ) BUILDAH_OPTS+=( "--no-cache" )
BUILDAH_OPTS+=( "-t" "localhost/image:$(uname -m)" ) BUILDAH_OPTS+=( "-t" "localhost/image:$(uname -m)" )
BUILDAH_OPTS+=( "$(workspaces.source-workspace.path)/$(params.context-dir)" )
if [ -n "${OVERRIDE_FROM:-}" ]; then if [ -n "${OVERRIDE_FROM:-}" ]; then
echo "Overriding FROM instruction with: $OVERRIDE_FROM" echo "Overriding FROM instruction with: $OVERRIDE_FROM"
BUILDAH_OPTS+=( "--from" "$OVERRIDE_FROM" ) BUILDAH_OPTS+=( "--from" "$OVERRIDE_FROM" )
fi fi
BUILDAH_OPTS+=( "$(workspaces.source-workspace.path)/$(params.context-dir)" )
buildah build "${BUILDAH_OPTS[@]}" buildah build "${BUILDAH_OPTS[@]}"
echo "=== Export as tar archive ===" echo "=== Export as tar archive ==="

Loading…
Cancel
Save