diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..29d6828 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +node_modules +npm-debug.log + diff --git a/.github/workflows/cd-development.yml b/.github/workflows/cd-development.yml index db030cd..bebd2dc 100644 --- a/.github/workflows/cd-development.yml +++ b/.github/workflows/cd-development.yml @@ -1,8 +1,9 @@ name: CD-development on: - pull_request: - branches: [ "mfe-dev" ] + push: + branches: [ "feature-dc-front-cd" ] + jobs: Build-and-Test-on-Nodejs: @@ -10,7 +11,7 @@ jobs: strategy: matrix: - node-version: [ 16.x, 18.x ] + node-version: [ 16.x] steps: - uses: actions/checkout@v3 @@ -44,10 +45,18 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - - name: Build and push to DockerHub + - name: Front-externo uses: docker/build-push-action@v3 with: context: . file: ./Dockerfile push: true - tags: ${{ secrets.DOCKER_HUB_USERNAME }}/front.li-sense:development \ No newline at end of file + tags: ${{ secrets.DOCKER_HUB_USERNAME }}/front.li-sense:development-externo + + - name: Front-interno + uses: docker/build-push-action@v3 + with: + context: . + file: ./li-sense-app/Dockerfile + push: true + tags: ${{ secrets.DOCKER_HUB_USERNAME }}/front.li-sense:development-interno diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..4589fd6 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,15 @@ +version: '3' + +services: + + front-1: + container_name: front-externo + ports: + - "9000:9000" + + front-2: + container_name: front-interno + build: + context: ./li-sense-app + ports: + - "8080:8080" diff --git a/li-sense-app/.dockerignore b/li-sense-app/.dockerignore new file mode 100644 index 0000000..29d6828 --- /dev/null +++ b/li-sense-app/.dockerignore @@ -0,0 +1,3 @@ +node_modules +npm-debug.log + diff --git a/li-sense-app/Dockerfile b/li-sense-app/Dockerfile index c3cb6f8..22604b6 100644 --- a/li-sense-app/Dockerfile +++ b/li-sense-app/Dockerfile @@ -12,4 +12,4 @@ RUN npm run build EXPOSE 8080 # RUN -CMD [ "npm", "start" ] \ No newline at end of file +CMD [ "npm","start"] \ No newline at end of file diff --git a/li-sense-app/src/_pages/BeAseller/BeAseller.css b/li-sense-app/src/_pages/BeAseller/BeAseller.css index 7d8cc6f..7dd2821 100644 --- a/li-sense-app/src/_pages/BeAseller/BeAseller.css +++ b/li-sense-app/src/_pages/BeAseller/BeAseller.css @@ -1,8 +1,8 @@ -.panel-detail { +/* .panel-detail { border-radius: 8px; border: 2px solid var(--color-secondary); background-color: var(--color-background-form); -} +} */ .submit { font-family: var(--title-fonts); @@ -19,4 +19,8 @@ color: #000; font-weight: bold; text-decoration: none; +} +.profile-picture { + width: 200px; + height: 200px; } \ No newline at end of file diff --git a/li-sense-app/src/_pages/BeAseller/BeAseller.js b/li-sense-app/src/_pages/BeAseller/BeAseller.js index 25830dc..0a4c62f 100644 --- a/li-sense-app/src/_pages/BeAseller/BeAseller.js +++ b/li-sense-app/src/_pages/BeAseller/BeAseller.js @@ -11,10 +11,10 @@ export default function BeAseller() {
A LI-SENSE utilizará seu CPF/CNPJ durante a etapa de confirmação.
-Como você se chama?
-