File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ if [[ "${FORMAT}" == "oci" ]]; then
112
112
# }
113
113
repo_tags=" ${REPOTAGS[@]} " " ${YQ} " -o json eval " (.manifests = ${MANIFEST_COPIES} ) *d {\" manifests\" : (env(repo_tags) | split \" \" | map {\" annotations\" : {\" org.opencontainers.image.ref.name\" : .}})}" " ${INDEX_FILE} " > " ${STAGING_DIR} /index.json"
114
114
115
- tar -C " ${STAGING_DIR} " -cf " ${TARBALL_PATH} " index.json blobs oci-layout
115
+ tar --directory " ${STAGING_DIR} " --create --no-xattr --file " ${TARBALL_PATH} " index.json blobs oci-layout
116
116
exit 0
117
117
fi
118
118
@@ -137,4 +137,4 @@ layers="${LAYERS}" \
137
137
--output-format json > " ${STAGING_DIR} /manifest.json"
138
138
139
139
# TODO: https://github.com/bazel-contrib/rules_oci/issues/217
140
- tar -C " ${STAGING_DIR} " -cf " ${TARBALL_PATH} " manifest.json blobs
140
+ tar --directory " ${STAGING_DIR} " --create --no-xattr --file " ${TARBALL_PATH} " manifest.json blobs
You can’t perform that action at this time.
0 commit comments