fix:make swagger in the build dir so it's properly copied to the hypervisor NOCHANGELOG
This commit is contained in:
parent
20c5cebfae
commit
788e84d70c
|
@ -50,19 +50,19 @@ SWAGGER_RELEASE_URL = https://github.com/swagger-api/swagger-ui/archive/refs/tag
|
||||||
SWAGGER_BUILD_DIR = swagger
|
SWAGGER_BUILD_DIR = swagger
|
||||||
|
|
||||||
swagger:
|
swagger:
|
||||||
mkdir "$(SWAGGER_BUILD_DIR)"
|
mkdir "$(BUILD_DIR)/$(SWAGGER_BUILD_DIR)"
|
||||||
curl -sSL "$(SWAGGER_RELEASE_URL)" | \
|
curl -sSL "$(SWAGGER_RELEASE_URL)" | \
|
||||||
tar --extract \
|
tar --extract \
|
||||||
--gzip \
|
--gzip \
|
||||||
--directory="$(SWAGGER_BUILD_DIR)" \
|
--directory="$(BUILD_DIR)/$(SWAGGER_BUILD_DIR)" \
|
||||||
--strip-components=2 \
|
--strip-components=2 \
|
||||||
"swagger-ui-$(SWAGGER_VERSION)/dist"
|
"swagger-ui-$(SWAGGER_VERSION)/dist"
|
||||||
|
|
||||||
sed -i \
|
sed -i \
|
||||||
"s#https://petstore.swagger.io/v2/swagger.json#schema.yml#g" \
|
"s#https://petstore.swagger.io/v2/swagger.json#schema.yml#g" \
|
||||||
"$(SWAGGER_BUILD_DIR)/swagger-initializer.js"
|
"$(BUILD_DIR)/$(SWAGGER_BUILD_DIR)/swagger-initializer.js"
|
||||||
|
|
||||||
cp schema.yml "$(SWAGGER_BUILD_DIR)/schema.yml"
|
cp schema.yml "$(BUILD_DIR)/$(SWAGGER_BUILD_DIR)/schema.yml"
|
||||||
|
|
||||||
# Releases
|
# Releases
|
||||||
$(BUILD_DIR)/releases.json: $(BUILD_DIR)
|
$(BUILD_DIR)/releases.json: $(BUILD_DIR)
|
||||||
|
|
Loading…
Reference in New Issue