From 13e881ddf54483a18515a6ef86dc1dc06089a7bc Mon Sep 17 00:00:00 2001 From: Alexandru Ianta Date: Thu, 24 Jun 2021 14:02:06 -0300 Subject: [PATCH] removed deprecated azure-pipelines.yml file --- azure-pipelines.yml | 88 --------------------------------------------- 1 file changed, 88 deletions(-) delete mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index b27802b..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,88 +0,0 @@ -# Starter pipeline -# Start with a minimal pipeline that you can customize to build and deploy your code. -# Add steps that build, run tests, deploy, and more: -# https://aka.ms/yaml - -trigger: -- main - -pool: Default - -steps: -- script: | - echo "Preventing calamity. Please wait while environment variables are verified..." - # ENSURE ENVIRONMENT VARIABLES EXIST, OTHERWISE CRASH # IT'S CRITICAL THIS EXISTS OTHERWISE THE DEPLOYING SERVER WILL GET NUKED!! if [ -z "${CKAN_LOG_PATH}"] ||\ - if [ -z "${CKAN_LOG_PATH}" ] ||\ - [ -z "${CKAN_PORT}" ] ||\ - [ -z "${CKAN_SITE_URL}" ] ||\ - [ -z "${CKAN_TAG}" ] ||\ - [ -z "${CKANEXTS_PATH}" ] ||\ - [ -z "${DOCKER_EXTS_PATH}" ] ||\ - [ -z "${DOCKER_VENV_PATH}" ] ||\ - [ -z "${DOCKER_PATH}" ] ||\ - [ -z "${EXT_NAME}" ] - then - echo "Required environment variables not set! Exiting to prevent catastrophic behavior!" - exit 1 - fi - continueOnError: false - displayName: 'Environment Variable check' - -# - script: | - -# echo Cloned repo into $(Agent.BuildDirectory)/s/ -# echo "Repo contents:" -# ls $(Agent.BuildDirectory)/s/ - -# # If the extension folder does not exist create it. -# if [ ! -d $(CKANEXTS_PATH)$(EXT_NAME) ] -# then -# echo Extension folder does not exist, creating it now. -# sudo mkdir $(ckanexts_path)$(ext_name) -# else -# echo Extension folder exists, clearing old contents! -# sudo rm -r $(ckanexts_path)$(ext_name)/* -# fi -# echo Copying new files -# sudo cp -r $(Agent.BuildDirectory)/s/* $(ckanexts_path)$(ext_name) -# sudo chmod 777 -R $(ckanexts_path)$(ext_name) - -# echo "Installing plugin into CKAN venv" -# sudo docker exec ckan /bin/bash -c "source $(docker_venv_path) && \ -# cd $(docker_exts_path)ckanext-vitality_prototype/ && pip install -r requirements.txt" -# sudo docker exec ckan /bin/bash -c "source $(docker_venv_path) && \ -# cd $(docker_exts_path)ckanext-vitality_prototype/ && python setup.py develop" - -# displayName: 'Updating extension files' - -# - script: | -# cd $(docker_path) -# sudo docker-compose down -# continueOnError: true # In the case where CKAN wasn't up to begin with -# displayName: 'Shutting down CKAN' - -# - script: | -# cd $(docker_path) -# sudo docker-compose up -d -# displayName: 'Restarting CKAN' -# env: -# DATASTORE_READONLY_PASSWORD: $(datastore_readonly_password) -# POSTGRES_PASSWORD: $(postgres_password) - -# - script: | -# echo "Seeding users into metadata authorization model" -# sudo docker exec ckan /usr/local/bin/ckan-paster --plugin=ckanext-vitality_prototype \ -# vitality seed --config=/etc/ckan/production.ini - -# displayName: 'Seeding Authorization Model' - -# - script: | -# echo "Re-indexing datasets..." -# sudo docker exec ckan /usr/local/bin/ckan-paster --plugin=ckan search-index \ -# rebuild --config=/etc/ckan/production.ini - -# sudo docker exec ckan /usr/local/bin/ckan-paster --plugin=ckanext-harvest harvester \ -# reindex --config=/etc/ckan/production.ini - -# displayName: 'Re-Indexing Datasets' -