File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 5
5
branches : [ "main" ]
6
6
7
7
env :
8
- IMAGE_BASE_NAME : aminespinoza/apicontactos
8
+ IMAGE_BASE_NAME : aminespinoza/apicontactos:latest
9
+ RESOURCE_GROUP : rg--warm-wren
10
+ ENVIRONMENT_NAME : devops-env
9
11
10
12
jobs :
11
13
API_Image :
17
19
- name : Check out the repo
18
20
uses : actions/checkout@v3
19
21
22
+ - name : Azure Login
23
+
24
+ with :
25
+ creds : ${{ secrets.AZURE_CREDENTIALS }}
26
+
27
+ - name : Install az containerapp extension
28
+ run : |
29
+ az config set extension.use_dynamic_install=yes_without_prompt
30
+
20
31
- name : Build Docker NET image
21
32
run : |
22
33
docker build --platform linux -t $IMAGE_BASE_NAME .
29
40
30
41
- name : Deploy image to hub
31
42
run : |
32
- docker push $IMAGE_BASE_NAME:latest
43
+ docker push $IMAGE_BASE_NAME
44
+
45
+ - name : Deploy Container App
46
+ run : |
47
+ az containerapp up --name contactosapi --image $IMAGE_BASE_NAME --resource-group $RESOURCE_GROUP --environment $ENVIRONMENT_NAME --ingress external --target-port 8080
You can’t perform that action at this time.
0 commit comments