Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cr7258 committed Jun 29, 2024
1 parent 33026ee commit dec2692
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/build-and-push-wasm-go-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,7 @@ jobs:
if [[ $? -eq 0 ]]; then
tar czvf "${PLUGIN_DIR}/plugin.tar.gz" "${PLUGIN_DIR}/plugin.wasm"
PUSH_FILES=("${PLUGIN_DIR}/plugin.tar.gz:application/vnd.oci.image.layer.v1.tar+gzip")
declare -A FILES=(
["spec.yaml"]="application/vnd.module.wasm.spec.v1+yaml"
["README.md"]="application/vnd.module.wasm.doc.v1+markdown"
["README_EN.md"]="application/vnd.module.wasm.doc.v1.en+markdown"
)
for FILE in "${!FILES[@]}"; do
FILE_PATH="${PLUGIN_DIR}/${FILE}"
if [[ -f "${FILE_PATH}" ]]; then
PUSH_FILES+=("${FILE_PATH}:${FILES[$FILE]}")
fi
done
oras push "${IMAGE}" "${PUSH_FILES[@]}"
break
Expand Down

0 comments on commit dec2692

Please sign in to comment.