-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (49 loc) · 1.64 KB
/
docker-dashboard.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
53
name: Honeypot Dashboard
on:
push:
branches:
- S3-2.3/Passage_en_mono_repo
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_CONFIG: ${{ github.workspace }}/.docker
jobs:
Backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Docker credentials
run: |
mkdir $DOCKER_CONFIG
echo -n "$DOCKER_PASSWORD" | docker --config $DOCKER_CONFIG login --username $DOCKER_USER --password-stdin
- name: Build the Envoy image
run: |
cd ./Backend
docker build -t $DOCKER_USER/hb_dashboard_envoy -f Dockerfile.envoy .
- name: Build the Backend image
run: |
cd ./Backend
docker build -t $DOCKER_USER/hb_dashboard_back .
- name: Push the images
run: |
docker --config $DOCKER_CONFIG push $DOCKER_USER/hb_dashboard_envoy
docker --config $DOCKER_CONFIG push $DOCKER_USER/hb_dashboard_back
Frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Docker credentials
run: |
mkdir $DOCKER_CONFIG
echo -n "$DOCKER_PASSWORD" | docker --config $DOCKER_CONFIG login --username $DOCKER_USER --password-stdin
- name: Build protos
run: |
chmod 777 ./scripts/make_frontend_protos.sh
./scripts/make_frontend_protos.sh ./Honeypot/protos ./Frontend
- name: Build the Frontend image
run: |
cd ./Frontend
docker build -t $DOCKER_USER/hb_dashboard_front .
- name: Push the Frontend image
run: |
docker --config $DOCKER_CONFIG push $DOCKER_USER/hb_dashboard_front