harbor/tests/robot-cases/Group0-Util/prepare_imgpkg_test_files.sh
Yang Jiao d7f53e51a9 Add test case to verify imgpkg in nightly
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-11-09 14:35:05 +08:00

27 lines
415 B
Bash
Executable File

#!/bin/bash
set -x
set -e
FILE_DIRECTORY=$1
FILE_PATH=$FILE_DIRECTORY/.imgpkg
mkdir "$FILE_DIRECTORY"
mkdir "$FILE_PATH"
cat > "$FILE_PATH"/bundle.yml <<EOF
---
apiVersion: imgpkg.carvel.dev/v1alpha1
kind: Bundle
metadata:
name: my-app
authors:
- name: blah
email: blah@blah.com
websites:
- url: blah.com
EOF
cat > "$FILE_PATH"/images.yml <<EOF
---
apiVersion: imgpkg.carvel.dev/v1alpha1
kind: ImagesLock
EOF