-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (32 loc) · 1.43 KB
/
deploy_aci.yml
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
29
30
31
32
33
34
35
on: workflow_dispatch
name: Deploy_ACI
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: prod_azure_motomap
steps:
# checkout our repo
- name: 'Checkout GitHub Action'
uses: actions/checkout@master
- name: 'Login via Azure CLI'
uses: azure/[email protected]
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- uses: azure/[email protected]
with:
login-server: ${{ secrets.REGISTRY_SERVER }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- run: |
curl --output splitter.zip https://motomap.azureedge.net/lib/splitter-r653.zip
curl --output mkgmap.zip https://motomap.azureedge.net/lib/mkgmap-r4916.zip
curl --output sea-latest.zip https://motomap.azureedge.net/lib/sea-latest.zip
unzip splitter.zip
unzip mkgmap.zip
mv splitter-r653 splitter
mv mkgmap-r4916 mkgmap
mkdir precomp-sea
mv sea-latest.zip precomp-sea/sea-latest.zip
docker build . -t ${{ secrets.REGISTRY_SERVER }}/motomap:${{ github.sha }} -t ${{ secrets.REGISTRY_SERVER }}/motomap:latest
az acr repository untag --name ${{ secrets.REGISTRY_SERVER }} --image motomap:latest
docker push --all-tags ${{ secrets.REGISTRY_SERVER }}/motomap