Feat/arruma cypress cherry pick #93
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci/cd-dev | |
on: | |
pull_request: | |
branches: | |
- develop | |
types: | |
- closed | |
- ready_for_review | |
- review_requested | |
workflow_dispatch: | |
jobs: | |
CODE_STYLE: | |
name: PHP-CS-Fixer | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run PHP-CS-Fixer | |
uses: erkenes/php-cs-fixer-action@main | |
with: | |
args: '--dry-run --diff -vvv' | |
BUILD: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Docker Login | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKERHUB_USER }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Ajusta branch do MultipleLocalAuth | |
run: cd src/plugins/MultipleLocalAuth && git checkout v3.0.0 | |
- name: Criação da Imagem docker | |
uses: docker/[email protected] | |
with: | |
context: ./ | |
file: ./Dockerfile | |
push: true | |
tags: | | |
secultceara/mapascultural:7.3.7-dev | |
DEPLOY: | |
needs: BUILD | |
runs-on: mapahomolog | |
steps: | |
- name: Pull das imagens docker | |
run: cd /opt/docker/developv7 && sudo docker-compose pull | |
- name: Restart do docker-compose para atualizar o container com a nova imagem | |
run: cd /opt/docker/developv7 && sudo docker-compose down && sudo docker-compose up -d |