-
Notifications
You must be signed in to change notification settings - Fork 10
52 lines (45 loc) · 1.25 KB
/
order-ui.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build & Deploy Order UI
on:
workflow_dispatch:
inputs:
git-ref:
description: Git Ref (Optional)
required: false
push:
branches:
- master
pull_request:
branches:
- master
defaults:
run:
working-directory: order-ui
jobs:
build-and-deploy:
runs-on: ubuntu-latest
name: Build and Deploy
steps:
- uses: actions/checkout@master
- uses: azure/docker-login@v1
with:
login-server: daprtalks.azurecr.io
username: ${{ secrets.acr_daprtalks_username }}
password: ${{ secrets.acr_daprtalks_password }}
- name: Build and push Order UI to ACR
id: build-order-ui
run: |
docker build "$GITHUB_WORKSPACE/order-ui" -f "Dockerfile" -t daprtalks.azurecr.io/order-ui:${{ github.sha }}
docker push daprtalks.azurecr.io/order-ui:${{ github.sha }}
- uses: azure/k8s-set-context@v1
id: login
with:
kubeconfig: ${{ secrets.aks_daprtalk_kubeConfig }}
- uses: azure/k8s-deploy@v1
with:
namespace: default
manifests: |
order-ui/order-ui.yaml
images: |
daprtalks.azurecr.io/order-ui:${{ github.sha }}
imagepullsecrets: |
daprtalkdockerauth