test: Add --ref for non-default ref

Because test uses 'test/rhel/8/x86_64/edge', building rhel-edge
image should include --ref arg
This commit is contained in:
Xiaofeng Wang 2021-04-08 11:01:51 +08:00
parent 3a0d1bb2de
commit 41fdfbd168

View file

@ -120,7 +120,7 @@ build_image() {
repo_url=$3
sudo composer-cli --json compose start-ostree --ref "$OSTREE_REF" --url "$repo_url" "$blueprint_name" "$image_type" | tee "$COMPOSE_START"
else
sudo composer-cli --json compose start-ostree "$blueprint_name" "$image_type" | tee "$COMPOSE_START"
sudo composer-cli --json compose start-ostree --ref "$OSTREE_REF" "$blueprint_name" "$image_type" | tee "$COMPOSE_START"
fi
COMPOSE_ID=$(jq -r '.build_id' "$COMPOSE_START")