Skip to content

Commit

Permalink
[DEVOPS-368] Remove broken/unused inputs in B2C workflow (#119)
Browse files Browse the repository at this point in the history
<details open>
<summary><a href="https://amuniversal.atlassian.net/browse/DEVOPS-368"
title="DEVOPS-368" target="_blank">DEVOPS-368</a></summary>
  <br />
  <table>
    <tr>
      <th>Summary</th>
      <td>Rework B2C workflow inputs</td>
    </tr>
    <tr>
      <th>Type</th>
      <td>
<img alt="Story"
src="https://amuniversal.atlassian.net/images/icons/issuetypes/story.png"
/>
        Story
      </td>
    </tr>
    <tr>
      <th>Status</th>
      <td>In Progress</td>
    </tr>
    <tr>
      <th>Points</th>
      <td>N/A</td>
    </tr>
    <tr>
      <th>Labels</th>
      <td>-</td>
    </tr>
  </table>
</details>
<!--
do not remove this marker as it will break action-jira-linter's
functionality.
  added_by_jira_lint
-->
---

<!-- Please make sure you read the contribution guidelines and then fill
out the blanks below.

Please format the PR title appropriately based on the type of change:
  [JIRA-XXX]: <description>
-->

## Description

- Remove broken/unused inputs in B2C workflow 

## Related Links

<!-- List any links related to this pull request here

Replace "JIRA-XXX" with the your Jira issue key -->

- Jira Issue: DEVOPS-368
  • Loading branch information
ebronson68 authored May 6, 2024
1 parent 561a535 commit 53a16d6
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/b2c-build-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,6 @@ on:
required: false
type: string
description: "AKS Key vault."
azureB2CDomain:
required: true
type: string
description: "Domain name of the B2C tenant."
azureB2CTenantId:
required: true
type: string
description: "Tenant Id for the B2C tenant."
azureB2CProductUrl:
required: false
type: string
description: "URL of the B2C Product."
checkoutRef:
required: false
type: string
Expand All @@ -33,36 +21,13 @@ on:
required: true
storageAccountKey:
required: true
azureB2CClientId:
required: true
azureB2CClientSecret:
required: true

jobs:
vars:
name: Set Environment Variables
runs-on: ubuntu-latest
steps:
- name: Set environment variables
run: |
if [[ "${{ inputs.environment }}" == "production" ]] ; then
echo "url=amub2c.b2clogin.com" >> $GITHUB_ENV
else
echo "url=${{ inputs.environment }}amub2c.b2clogin.com" >> $GITHUB_ENV
fi
echo "azureB2CClientId=${{ secrets.azureB2CClientId }}" >> $GITHUB_ENV
outputs:
url: ${{ env.url }}
azureB2CClientId: ${{ env.azureB2CClientId }}

build:
name: Build B2C Application
needs: [vars]
runs-on: ubuntu-latest
environment:
name: ${{ inputs.environment }}
url: "https://${{ needs.vars.outputs.url }}/${{ inputs.azureB2CDomain }}/b2c_1a_gc_signinsignout_policies/oauth2/v2.0/authorize?client_id=${{ needs.vars.outputs.azureB2CClientId }}&scope=https%3A%2F%2F${{ inputs.azureB2CDomain }}%2Fapi%2Fdemo.read%20https%3A%2F%2F${{ inputs.azureB2CDomain }}%2Fapi%2Fdemo.write%20https%3A%2F%2F${{ inputs.azureB2CDomain }}%2Fapi%2Fuser_impersonation%20offline_access%20openid&response_type=code&redirect_uri=https%3A%2F%2F${{ inputs.azureB2CProductUrl }}%2Fapi%2Fauth%2Fcallback%2Fazureb2c"
continue-on-error: false
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down

0 comments on commit 53a16d6

Please sign in to comment.