Skip to content

Commit 6183519

Browse files
Add validation job
1 parent 9ab9d87 commit 6183519

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/run-validation.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,60 @@ env:
1919

2020
jobs:
2121

22+
create-using-found-dockerfile:
23+
24+
name: 'Create app using found Dockerfile'
25+
runs-on: ubuntu-latest
26+
timeout-minutes: 10
27+
28+
env:
29+
TEST_IMAGE_TAG: 'fd-${{ github.run_id }}'
30+
TEST_CONTAINER_APP_NAME: 'gh-ca-fd-${{ github.run_id }}'
31+
32+
permissions:
33+
id-token: write
34+
contents: read
35+
36+
steps:
37+
- name: Checkout action repository
38+
uses: actions/checkout@v3
39+
40+
- name: Clone Oryx repository
41+
uses: actions/checkout@v3
42+
with:
43+
repository: microsoft/Oryx
44+
path: oryx
45+
46+
- name: Log in to Azure using UAMI with OIDC
47+
uses: azure/login@v2
48+
with:
49+
client-id: ${{ secrets.AZURE_UAMI_CLIENT_ID }}
50+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
51+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
52+
53+
- name: Execute Azure Container Apps Build and Deploy Action
54+
uses: ./
55+
with:
56+
appSourcePath: '${{ github.workspace }}/oryx/tests/SampleApps/DotNetCore/Blazor_Function_Sample/blazor-sample-app'
57+
acrName: ${{ vars.TEST_ACR_NAME }}
58+
acrUsername: ${{ secrets.TEST_REGISTRY_USERNAME }}
59+
acrPassword: ${{ secrets.TEST_REGISTRY_PASSWORD }}
60+
containerAppName: ${{ env.TEST_CONTAINER_APP_NAME }}
61+
containerAppEnvironment: ${{ vars.TEST_EXISTING_CONTAINER_APP_ENV }}
62+
resourceGroup: ${{ vars.TEST_RESOURCE_GROUP_NAME }}
63+
imageToBuild: ${{ env.TEST_FULL_ACR_NAME }}/${{ env.TEST_IMAGE_REPOSITORY }}:${{ env.TEST_IMAGE_TAG }}
64+
disableTelemetry: ${{ vars.TEST_DISABLE_TELEMETRY }}
65+
66+
- name: Delete created Azure Container App
67+
if: ${{ always() }}
68+
shell: bash
69+
run: az containerapp delete -n ${{ env.TEST_CONTAINER_APP_NAME }} -g ${{ vars.TEST_RESOURCE_GROUP_NAME }} -y
70+
71+
- name: Delete pushed image
72+
if: ${{ always() }}
73+
shell: bash
74+
run: az acr repository delete -n ${{ vars.TEST_ACR_NAME }} -t ${{ env.TEST_IMAGE_REPOSITORY }}:${{ env.TEST_IMAGE_TAG }} -y
75+
2276
create-using-provided-dockerfile:
2377

2478
name: 'Create app using provided Dockerfile'

0 commit comments

Comments
 (0)