-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (41 loc) · 1.43 KB
/
main.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
name: Robson Production CI/CD Pipeline
on:
push:
branches: ["main"]
jobs:
CI:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Docker Login
uses: docker/[email protected]
with:
username: ${{secrets.DOCKERHUB_USER}}
password: ${{secrets.DOCKERHUB_PWD}}
- name: Build and push Docker frontend image
uses: docker/[email protected]
with:
context: ./frontends/web
file: ./frontends/web/docker/Dockerfile
push: true
tags: |
ldamasio/rbs-frontend-prod:0.0.${{github.run_number}}
ldamasio/rbs-frontend-prod:latest
- name: Build and push Docker monolith backend image
uses: docker/[email protected]
with:
context: ./backends/monolith
file: ./backends/monolith/docker/Dockerfile_django
push: true
tags: |
ldamasio/rbs-backend-monolith-prod:1.0.${{github.run_number}}
ldamasio/rbs-backend-monolith-prod:latest
- name: Build and push Docker monolith backend image
uses: docker/[email protected]
with:
context: ./backends/monolith
file: ./backends/monolith/docker/Dockerfile_nginx
push: true
tags: |
ldamasio/rbs-backend-nginx-prod:1.0.${{github.run_number}}
ldamasio/rbs-backend-nginx-prod:latest