Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Krusty93 committed Jan 22, 2024
1 parent 3929bc4 commit c27e98a
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions .github/workflows/call_release_function.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,40 @@ jobs:
mvn --projects :onboarding-functions --also-make package install -DskipTests \
-Dquarkus.azure-functions.app-name=${{ vars.AZURE_ONBOARDING_FN_APP_NAME }}
ls
release:
name: 'Release'
runs-on: ubuntu-20.04
environment: ${{ inputs.environment }}-cd
needs: [build]
permissions:
id-token: write
env:
ARM_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID_CD }}
ARM_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
ARM_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
ARM_USE_OIDC: true
ARM_USE_AZUREAD: true
ARM_STORAGE_USE_AZUREAD: true
# env:
# ARM_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID_CD }}
# ARM_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
# ARM_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
# ARM_USE_OIDC: true
# ARM_USE_AZUREAD: true
# ARM_STORAGE_USE_AZUREAD: true

steps:

- name: Log in to Azure
uses: azure/login@e15b166166a8746d1a47596803bd8c1b595455cf # v1.6.0
# with:
# client-id: ${{ secrets.AZURE_CLIENT_ID_CD }}
# tenant-id: ${{ secrets.AZURE_TENANT_ID }}
# subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
with:
client-id: ${{ secrets.AZURE_CLIENT_ID_CD }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: "Deploy Function App"
shell: bash
run: |
mvn -f apps/onboarding-functions/pom.xml quarkus:deploy \
-Dquarkus.azure-functions.app-name=${{ vars.AZURE_ONBOARDING_FN_APP_NAME }} \
-Dquarkus.azure-functions.subscription-id=${{ secrets.AZURE_SUBSCRIPTION_ID }} \
-Dquarkus.azure-functions.resource-group=${{ vars.AZURE_ONBOARDING_FN_RESOURCE_GROUP }} \
-Dquarkus.azure-functions.region=westeurope \
-Dquarkus.azure-functions.app-service-plan-name=${{ vars.AZURE_ONBOARDING_FN_SERVICE_PLAN }} \
-Dquarkus.azure-functions.runtime.java-version=17

0 comments on commit c27e98a

Please sign in to comment.