From 3c8c1e9eb8fb2d2dcd2c98f237da423c79e8eeb7 Mon Sep 17 00:00:00 2001 From: alsami Date: Wed, 8 Dec 2021 06:48:55 +0100 Subject: [PATCH] chore: remove unused files --- Covid19Api.sln | 3 --- deploy-app.sh | 24 ------------------------ execute-database-migrations.sh | 13 ------------- publish-docker.sh | 19 ------------------- 4 files changed, 59 deletions(-) delete mode 100755 deploy-app.sh delete mode 100755 execute-database-migrations.sh delete mode 100755 publish-docker.sh diff --git a/Covid19Api.sln b/Covid19Api.sln index ce21141..c132292 100644 --- a/Covid19Api.sln +++ b/Covid19Api.sln @@ -15,9 +15,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Covid19Api.Domain", "src\Co EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "misc", "misc", "{74A4D6BD-D911-40B5-8997-0BC559C31210}" ProjectSection(SolutionItems) = preProject - deploy-app.sh = deploy-app.sh LICENSE = LICENSE - publish-docker.sh = publish-docker.sh README.md = README.md .gitignore = .gitignore global.json = global.json @@ -25,7 +23,6 @@ ProjectSection(SolutionItems) = preProject Directory.Build.props = Directory.Build.props test.sh = test.sh execute-database-updates.sh = execute-database-updates.sh - execute-database-migrations.sh = execute-database-migrations.sh invoke-deployment.sh = invoke-deployment.sh EndProjectSection EndProject diff --git a/deploy-app.sh b/deploy-app.sh deleted file mode 100755 index 3bede53..0000000 --- a/deploy-app.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash -# https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli?view=azure-cli-latest -# https://docs.microsoft.com/en-us/cli/azure/webapp/config/container?view=azure-cli-latest#az-webapp-config-container-set -# https://docs.microsoft.com/en-us/cli/azure/webapp?view=azure-cli-latest#az-webapp-restart -function authenticate() { - echo authenticating with service-principal - az login --service-principal -u ${SERVICE_PRINCIPAL_USER} -p ${SERVICE_PRINCIPAL_PASSWORD} --tenant ${SERVICE_PRINCIPAL_TENANT} -} - - -function set_container() { - echo updating container to version ${TAG} - az webapp config container set -c "${REGISTRY}/covid-19-api:${TAG}" -r https://${REGISTRY} -u ${REGISTRY_USER} -p "${REGISTRY_PASSWORD}" -n ${COVID19API_SERVICE_NAME} -g ${COVID19API_RESOURCE_NAME} -} - -function restart_app() { - echo restarting application - az webapp restart --name ${COVID19API_SERVICE_NAME} --resource-group ${COVID19API_RESOURCE_NAME} -} - -authenticate -set_container -restart_app -exit ${?} \ No newline at end of file diff --git a/execute-database-migrations.sh b/execute-database-migrations.sh deleted file mode 100755 index 8509986..0000000 --- a/execute-database-migrations.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash -function build() { - dotnet build -c Release src/Covid19Api.Mongo.Migrator/Covid19Api.Mongo.Migrator.csproj -o publish -} - - -function execute() { - dotnet ./publish/Covid19Api.Mongo.Migrator.dll -} - -build -execute -exit ${?} \ No newline at end of file diff --git a/publish-docker.sh b/publish-docker.sh deleted file mode 100755 index 40caa39..0000000 --- a/publish-docker.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash -function create_image() { - if [[ -z ${TAG} ]]; then - docker build -t covid-19-api:latest -t ${REGISTRY}/covid-19-api:latest -f ./src/Covid19Api/Dockerfile . - else - docker build -t ${REGISTRY}/covid-19-api:${TAG} -f ./src/Covid19Api/Dockerfile . - fi -} - -function publish_image() { - if [[ -n ${TAG} ]]; then - docker push ${REGISTRY}/covid-19-api:${TAG} - fi - - #docker push ${REGISTRY}/covid-19-api:latest -} - -create_image -publish_image \ No newline at end of file