Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/_deploy-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
if: inputs.azure_environment == 'prod'
run: |
STAGING_REGISTRY_ID="/subscriptions/${{ vars.STAGING_SUBSCRIPTION_ID }}/resourceGroups/${{ env.UNIQUE_PREFIX }}-stage/providers/Microsoft.ContainerRegistry/registries/${{ env.UNIQUE_PREFIX }}stage"

az acr import \
--name ${{ env.UNIQUE_PREFIX }}${{ env.ENVIRONMENT }} \
--source ${{ inputs.image_name }}:${{ inputs.version }} \
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
echo "New revision is Unhealthy. Running state: $RUNNING_STATUS"
exit 1
fi

echo "($i) Waiting for revision to become active. Running state: $RUNNING_STATUS"
done
echo "New revision did not become active in time. Running state: $RUNNING_STATUS"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_deploy-infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Plan Cluster Resources
id: deploy_cluster
run: bash ./cloud-infrastructure/cluster/deploy-cluster.sh ${{ inputs.unique_prefix }} ${{ inputs.azure_environment }} ${{ inputs.cluster_location }} ${{ inputs.cluster_location_acronym }} ${{ inputs.sql_admin_object_id }} ${{ inputs.domain_name }} --plan

deploy:
name: Deploy
if: ${{ github.ref == 'refs/heads/main' }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/_migrate-database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
global-json-file: application/global.json

- name: Restore .NET Tools
working-directory: application
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
run: |
CONNECTION_STRING="Server=tcp:${{ env.SQL_SERVER_FQDN }},1433;Database=${{ inputs.database_name }};Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;Authentication=Active Directory Default;"

echo "Checking for pending migrations..."
echo "Checking for pending migrations..."
MIGRATION_INFO=$(dotnet ef migrations list \
--project ${{ inputs.relative_project_path }} \
--startup-project ${{ inputs.relative_startup_project }} \
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
echo "$MIGRATION_JSON"
echo "has_migrations_to_apply=false" >> $GITHUB_OUTPUT
fi

- name: Close Firewall
if: always()
working-directory: cloud-infrastructure/cluster
Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
const migrationsList = migrationJson.map(m => `- ${m.name} (${m.id})`).join('\n');

const migrationInfo = `## Approve Database Migration \`${{ inputs.database_name }}\` database on \`${{ inputs.azure_environment }}\`

The following pending migration(s) will be applied to the database when approved:
${migrationsList}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/account-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
global-json-file: application/global.json

- name: Restore .NET Tools
working-directory: application
Expand Down Expand Up @@ -174,7 +174,7 @@ jobs:
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
global-json-file: application/global.json

- name: Restore .NET Tools
working-directory: application
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/app-gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
global-json-file: application/global.json

- name: Restore .NET Tools
working-directory: application
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/back-office.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
run: |
deploy_staging="${{ github.ref == 'refs/heads/main' && vars.STAGING_CLUSTER_ENABLED == 'true' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'Deploy to Staging')) }}"
echo "deploy_staging=$deploy_staging" >> $GITHUB_OUTPUT

deploy_production="${{ github.ref == 'refs/heads/main' && vars.PRODUCTION_CLUSTER1_ENABLED == 'true' }}"
echo "deploy_production=$deploy_production" >> $GITHUB_OUTPUT

Expand All @@ -75,7 +75,7 @@ jobs:
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
global-json-file: application/global.json

- name: Restore .NET Tools
working-directory: application
Expand Down Expand Up @@ -174,7 +174,7 @@ jobs:
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
global-json-file: application/global.json

- name: Restore .NET Tools
working-directory: application
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull-request-conventions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# Check if description contains the phrase "pull request"
DESCRIPTION=$(gh pr view $PULL_REQUEST_NUMBER --json body -q '.body' --repo $GITHUB_REPOSITORY)
DESCRIPTION_LOWER="${DESCRIPTION,,}"

if echo "$DESCRIPTION_LOWER" | grep -qiE 'pull(-)?request\b'; then
echo "❌ Pull request description should not contain the phrase 'pull request' or 'pull-request'"
EXIT_CODE=1
Expand All @@ -87,7 +87,7 @@ jobs:
echo "❌ Please check the box: 'I have added tests, or done manual regression tests'"
EXIT_CODE=1
fi

if ! echo "$DESCRIPTION" | grep -q "\- \[x\] I have updated the documentation, if necessary"; then
echo "❌ Please check the box: 'I have updated the documentation, if necessary'"
EXIT_CODE=1
Expand Down
Loading