Skip to content

Update backend CI workflow #21

Update backend CI workflow

Update backend CI workflow #21

Workflow file for this run

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