-
Notifications
You must be signed in to change notification settings - Fork 11
137 lines (118 loc) · 4.93 KB
/
build-and-publish.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
name: Build and Push Docker Images
on:
push:
branches:
- main
- dev
- DEV-13666-build-images
jobs:
build-sdk-react:
name: Build and Push sdk-react
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to GitLab Container Registry
uses: docker/login-action@v3
with:
registry: registry.monite.com
username: ${{ vars.GITLAB_BOT_USERNAME }}
password: ${{ secrets.GITLAB_BOT_ACCESS_TOKEN }}
- name: Build and Push sdk-react
run: |
IMAGE_TAG=sdk-react-${{ github.sha }}
docker build -t registry.monite.com/monite/frontend/sdkapp:${IMAGE_TAG} -f ./Dockerfile.sdk-react .
docker push registry.monite.com/monite/frontend/sdkapp:${IMAGE_TAG}
build-sdk-demo-with-nextjs:
name: Build and Push sdk-demo-with-nextjs-and-clerk-auth
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to GitLab Container Registry
uses: docker/login-action@v3
with:
registry: registry.monite.com
username: ${{ vars.GITLAB_BOT_USERNAME }}
password: ${{ secrets.GITLAB_BOT_ACCESS_TOKEN }}
- name: Build and Push sdk-demo-with-nextjs-and-clerk-auth
run: |
IMAGE_TAG=sdk-demo-with-nextjs-and-clerk-auth-${{ github.sha }}
docker build -t registry.monite.com/monite/frontend/sdkapp:${IMAGE_TAG} -f ./Dockerfile.sdk-demo-with-nextjs-and-clerk-auth .
docker push registry.monite.com/monite/frontend/sdkapp:${IMAGE_TAG}
build-sdk-demo:
name: Build and Push sdk-demo
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to GitLab Container Registry
uses: docker/login-action@v3
with:
registry: registry.monite.com
username: ${{ vars.GITLAB_BOT_USERNAME }}
password: ${{ secrets.GITLAB_BOT_ACCESS_TOKEN }}
- name: Build and Push sdk-demo
run: |
IMAGE_TAG=sdk-demo-${{ github.sha }}
docker build -t registry.monite.com/monite/frontend/sdkapp:${IMAGE_TAG} -f ./Dockerfile.sdk-demo .
docker push registry.monite.com/monite/frontend/sdkapp:${IMAGE_TAG}
build-sdk-drop-in:
name: Build and Push sdk-drop-in
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to GitLab Container Registry
uses: docker/login-action@v3
with:
registry: registry.monite.com
username: ${{ vars.GITLAB_BOT_USERNAME }}
password: ${{ secrets.GITLAB_BOT_ACCESS_TOKEN }}
- name: Build and Push sdk-drop-in
run: |
IMAGE_TAG=sdk-drop-in-${{ github.sha }}
docker build -t registry.monite.com/monite/frontend/sdkapp:${IMAGE_TAG} -f ./Dockerfile.sdk-drop-in .
docker push registry.monite.com/monite/frontend/sdkapp:${IMAGE_TAG}
build-sdk-demo-nginx:
name: Build and Push sdk-demo-nginx
runs-on: ubuntu-latest
needs: build-sdk-demo
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to GitLab Container Registry
uses: docker/login-action@v3
with:
registry: registry.monite.com
username: ${{ vars.GITLAB_BOT_USERNAME }}
password: ${{ secrets.GITLAB_BOT_ACCESS_TOKEN }}
- name: Build and Push sdk-demo-nginx
run: |
BASE_IMAGE_TAG=sdk-demo-${{ github.sha }}
IMAGE_TAG=sdk-demo-nginx-${{ github.sha }}
docker pull registry.monite.com/monite/frontend/sdkapp:${BASE_IMAGE_TAG}
docker build --build-arg BASE_IMAGE=registry.monite.com/monite/frontend/sdkapp:${BASE_IMAGE_TAG} \
-t registry.monite.com/monite/frontend/sdkapp:${IMAGE_TAG} -f ./Dockerfile.sdk-demo-nginx .
docker push registry.monite.com/monite/frontend/sdkapp:${IMAGE_TAG}
build-sdk-drop-in-nginx:
name: Build and Push sdk-drop-in-nginx
runs-on: ubuntu-latest
needs: build-sdk-drop-in
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to GitLab Container Registry
uses: docker/login-action@v3
with:
registry: registry.monite.com
username: ${{ vars.GITLAB_BOT_USERNAME }}
password: ${{ secrets.GITLAB_BOT_ACCESS_TOKEN }}
- name: Build and Push sdk-drop-in-nginx
run: |
BASE_IMAGE_TAG=sdk-drop-in-${{ github.sha }}
IMAGE_TAG=sdk-drop-in-nginx-${{ github.sha }}
docker pull registry.monite.com/monite/frontend/sdkapp:${BASE_IMAGE_TAG}
docker build --build-arg BASE_IMAGE=registry.monite.com/monite/frontend/sdkapp:${BASE_IMAGE_TAG} \
-t registry.monite.com/monite/frontend/sdkapp:${IMAGE_TAG} -f ./Dockerfile.sdk-drop-in-nginx .
docker push registry.monite.com/monite/frontend/sdkapp:${IMAGE_TAG}