forked from ishitam8/aksup-java-example
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (25 loc) · 940 Bytes
/
main.yml
File metadata and controls
28 lines (25 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: CI
on: [push, pull_request]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@master
- name: 'Login via Azure CLI'
uses: Azure/docker-login@v1
with:
login-server: mitsha.azurecr.io
username: ${{ SECRETS.REGISTRY_USERNAME }}
password: ${{ SECRETS.REGISTRY_PASSWORD }}
- name: 'Deploy to ACI'
uses: azure/aci-deploy-action@v1
with:
resource-group: mitsha-test
dns-name-label: aci-up-python-example
image: mitsha.azurecr.io/aci-up-python-example
registry-username: ${{ SECRETS.REGISTRY_USERNAME }}
registry-password: ${{ SECRETS.REGISTRY_PASSWORD }}
name: aci-up-python-example
ports: 80 8080
location: 'west us'