mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-31 23:59:32 +01:00
d7f53e51a9
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
27 lines
415 B
Bash
Executable File
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 |