Switch from pushd to cd.
This commit is contained in:
parent
8f9ff6d271
commit
04f2c07834
2 changed files with 2 additions and 2 deletions
2
src/in
2
src/in
|
@ -7,6 +7,6 @@ set -eu
|
||||||
|
|
||||||
oci_dir="$(mktemp -d)"
|
oci_dir="$(mktemp -d)"
|
||||||
crane pull --format=oci "$REPOSITORY:@$(jq -r .version "$INPUT_FILE")" "$oci_dir"
|
crane pull --format=oci "$REPOSITORY:@$(jq -r .version "$INPUT_FILE")" "$oci_dir"
|
||||||
pushd "$oci_dir" && tar cf "$1/image.tar" && popd
|
cd "$oci_dir" && tar cf "$1/image.tar" && cd -
|
||||||
|
|
||||||
echo "$(jq -r .version < "$INPUT_FILE")"
|
echo "$(jq -r .version < "$INPUT_FILE")"
|
||||||
|
|
2
src/out
2
src/out
|
@ -7,6 +7,6 @@ set -eu
|
||||||
|
|
||||||
IMAGE_REFS_FILE="$(mktemp -t)"
|
IMAGE_REFS_FILE="$(mktemp -t)"
|
||||||
oci_dir="$(mktemp -d)"
|
oci_dir="$(mktemp -d)"
|
||||||
pushd "$oci_dir" && tar xf "$1/$(jq -r .params.image < "$INPUT_FILE")" && popd
|
cd "$oci_dir" && tar xf "$1/$(jq -r .params.image < "$INPUT_FILE")" && cd -
|
||||||
crane push "$oci_dir" "$REPOSITORY:$TAG" --image-refs="$IMAGE_REFS_FILE"
|
crane push "$oci_dir" "$REPOSITORY:$TAG" --image-refs="$IMAGE_REFS_FILE"
|
||||||
sed 's/^[^@]*@//' < "$IMAGE_REFS_FILE"
|
sed 's/^[^@]*@//' < "$IMAGE_REFS_FILE"
|
||||||
|
|
Reference in a new issue