-
Notifications
You must be signed in to change notification settings - Fork 120
37 lines (29 loc) · 1.42 KB
/
docker-image-web-ui-dev-generic-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
name: DEV WebUI Docker Image CI
on:
push:
branches:
- demo-generic-ui-changes
permissions: # Sets workflow permissions using the least privilege principle
contents: read # Read access to repo, required by the actions/checkout@v2 action
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Azure Container Registry Login
uses: Azure/docker-login@v1
with:
# Container registry username
username: ${{ secrets.CKM_USERNAME }}
# Container registry password
password: ${{ secrets.CKM_PASSWORD }}
# Container registry server url
login-server: ${{ secrets.CKM_LOGIN_SERVER }}
- uses: actions/checkout@v2
- name: Build the Docker image
run:
cd "GBB.ConversationalKM.WebUI";
docker pull ${{ secrets.CKM_LOGIN_SERVER }}/ckm-ui-dev-generic:latest || true;
docker build . --file Docker/Dockerfile --cache-from ${{ secrets.CKM_LOGIN_SERVER }}/ckm-ui-dev-generic:latest --tag ${{ secrets.CKM_LOGIN_SERVER }}/ckm-ui-dev-generic:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER;
docker tag ${{ secrets.CKM_LOGIN_SERVER }}/ckm-ui-dev-generic:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER ${{ secrets.CKM_LOGIN_SERVER }}/ckm-ui-dev-generic:latest;
docker push ${{ secrets.CKM_LOGIN_SERVER }}/ckm-ui-dev-generic:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER;
docker push ${{ secrets.CKM_LOGIN_SERVER }}/ckm-ui-dev-generic:latest