Skip to content

Commit

Permalink
Merge pull request #1047 from clearlydefined/build-deploy-workflow-prod
Browse files Browse the repository at this point in the history
Create Actions workflow to deploy to production
  • Loading branch information
elrayle authored May 30, 2024
2 parents 829a8bf + f414466 commit 8901096
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build-and-deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -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:
release:
types: [published]

jobs:
build-and-deploy-prod:
uses: clearlydefined/operations/.github/workflows/[email protected]
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

0 comments on commit 8901096

Please sign in to comment.