From ad1fe34b808c1ba57b5b67466dff6b873de48b94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Wed, 18 May 2022 00:32:51 +0200 Subject: [PATCH] add hosts.json --- .drone.yml | 13 ++++--------- host.json | 5 +++++ 2 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 host.json diff --git a/.drone.yml b/.drone.yml index 53a102f..a0e2138 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,6 +2,9 @@ kind: pipeline type: docker name: Azure Function App +image_pull_secrets: +- dockerconfig + steps: - name: Build and upload function app environment: @@ -13,15 +16,7 @@ steps: from_secret: AZURE_SP_TENANT FUNCTION_APP_NAME: from_secret: FUNCTION_APP_NAME - image: ubuntu:20.04 + image: registry.kmlabz.com/tormakris/ubuntu-azure-cli commands: - - apt update - - apt install -y wget - - wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb - - dpkg -i packages-microsoft-prod.deb - - echo 'tzdata tzdata/Areas select Europe' | debconf-set-selections - - echo 'tzdata tzdata/Zones/Europe select Budapest' | debconf-set-selections - - DEBIAN_FRONTEND="noninteractive" apt install -y azure-cli npm - - npm i -g azure-functions-core-tools@4 --unsafe-perm true - az login --service-principal -u $AZURE_SP -p $AZURE_SP_PASSWORD --tenant $AZURE_SP_TENANT - func azure functionapp publish $FUNCTION_APP_NAME --python diff --git a/host.json b/host.json new file mode 100644 index 0000000..8b8f24b --- /dev/null +++ b/host.json @@ -0,0 +1,5 @@ +{ + "http": { + "routePrefix": "" + } +}