-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.39 KB
/
build.yaml
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
name: Build and Deploy Images
on:
workflow_dispatch:
repository_dispatch:
types: [dependency_updated]
jobs:
build-api-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout GitHub Action
uses: actions/checkout@main
with:
repository: childmindresearch/ctk-functions
- name: Build and push image
uses: azure/docker-login@v2
with:
login-server: ${{ secrets.ACR_LOGIN_SERVER }}
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- run: |
docker build . --build-arg AZURE_BLOB_SIGNATURES_CONNECTION_STRING="${{ secrets.AZURE_BLOB_SIGNATURES_CONNECTION_STRING }}" -t ${{ secrets.ACR_LOGIN_SERVER }}/ctk-functions:latest
docker push ${{ secrets.ACR_LOGIN_SERVER }}/ctk-functions:latest
build-frontend-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout GitHub Action
uses: actions/checkout@main
with:
repository: childmindresearch/ctk-webapp
- name: Build and push image
uses: azure/docker-login@v2
with:
login-server: ${{ secrets.ACR_LOGIN_SERVER }}
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- run: |
docker build . -t ${{ secrets.ACR_LOGIN_SERVER }}/ctk-webapp:latest
docker push ${{ secrets.ACR_LOGIN_SERVER }}/ctk-webapp:latest