From 01ff422aa3a79d3edbd2c27f686ff882565bef91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Spie=C3=9F?= Date: Mon, 13 May 2024 13:01:11 +0200 Subject: [PATCH] Create Actions workflow to deploy to production --- .github/workflows/build-and-deploy-prod.yml | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/build-and-deploy-prod.yml diff --git a/.github/workflows/build-and-deploy-prod.yml b/.github/workflows/build-and-deploy-prod.yml new file mode 100644 index 00000000..f473d59f --- /dev/null +++ b/.github/workflows/build-and-deploy-prod.yml @@ -0,0 +1,23 @@ +# This workflow will build a docker image, push it to ghcr.io, and deploy it to an Azure WebApp. +name: Build and Deploy -- PROD + +on: + workflow_dispatch: + push: + branches: [master] + +jobs: + build-and-deploy: + uses: clearlydefined/operations/.github/workflows/app-build-and-deploy.yml@v1.0.0 + secrets: + AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} + AZURE_WEBAPP_PUBLISH_PROFILE: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_PROD }} + AZURE_SECONDARY_WEBAPP_PUBLISH_PROFILE: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_PROD_EU }} + DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }} + PRODUCTION_DEPLOYERS: ${{ secrets.PRODUCTION_DEPLOYERS }} + with: + deploy-env: prod + application-type: ui + azure-app-base-name: clearlydefined + azure-app-name-postfix: -prod + secondary-azure-app-name-postfix: -prod-europe