Skip to content

Commit d9f9267

Browse files
authored
Create deploy-azure.yml
1 parent cdf55fe commit d9f9267

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/deploy-azure.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: cd-pull-and-run-docker-image-aws-ec2
2+
on:
3+
workflow_run:
4+
workflows: ["cd-build-publish-docker-image"]
5+
types:
6+
- completed
7+
jobs:
8+
run:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: 'Az CLI login'
12+
uses: azure/login@v1
13+
with:
14+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
15+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
16+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
17+
18+
- name: 'Run Azure CLI commands'
19+
run: |
20+
az containerapp up \
21+
--name ml-demo-project-app \
22+
--resource-group asdasdasd \
23+
--location eastus \
24+
--environment 'my-container-apps' \
25+
--image matiasmiguez/ml-demo-project:latest \
26+
--target-port 8080 \
27+
--ingress external \
28+
--query properties.configuration.ingress.fqdn

0 commit comments

Comments
 (0)