|
|
|
@ -21,7 +21,7 @@ def main(ctx):
|
|
|
|
|
"dotnet restore OpenLibraryWS_Wrapper.sln",
|
|
|
|
|
"dotnet test OpenLibraryWS_Wrapper.sln --no-restore",
|
|
|
|
|
],
|
|
|
|
|
"depends_on": "[build]"
|
|
|
|
|
"depends_on": ["build"]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "code-inspection",
|
|
|
|
@ -59,7 +59,7 @@ def main(ctx):
|
|
|
|
|
"branch": "master"
|
|
|
|
|
},
|
|
|
|
|
"event": "push",
|
|
|
|
|
"depends_on": "[build,tests]"
|
|
|
|
|
"depends_on": ["build,tests"]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
@ -70,7 +70,7 @@ def main(ctx):
|
|
|
|
|
"dotnet tool install --version 6.5.0 Swashbuckle.AspNetCore.Cli --tool-path /bin",
|
|
|
|
|
"/bin/swagger tofile --output /drone/src/swagger.json bin/Release/net7.0/OpenLibraryWrapper.dll v1",
|
|
|
|
|
],
|
|
|
|
|
"depends_on": "[build]"
|
|
|
|
|
"depends_on": ["build"]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
@ -79,7 +79,7 @@ def main(ctx):
|
|
|
|
|
"commands":[
|
|
|
|
|
"/entrypoint.sh --type swagger --loc /drone/src/swagger.json",
|
|
|
|
|
],
|
|
|
|
|
"depends_on": "[generate-swashbuckle]"
|
|
|
|
|
"depends_on": ["generate-swashbuckle"]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
@ -97,7 +97,7 @@ def main(ctx):
|
|
|
|
|
"from_secret": "SECRET_REGISTRY_PASSWORD"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"depends_on": "[build,tests]"
|
|
|
|
|
"depends_on": ["build,tests"]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
@ -112,7 +112,7 @@ def main(ctx):
|
|
|
|
|
"from_secret": "db_host"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"depends_on": "[ docker-build-and-push ]"
|
|
|
|
|
"depends_on": ["docker-build-and-push"]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
@ -137,7 +137,7 @@ def main(ctx):
|
|
|
|
|
"from_secret": "db_password"
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
"depends_on": "[deploy-app]"
|
|
|
|
|
"depends_on": ["deploy-app"]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|