Skip to content

✅ Merge develop to homolog #34

✅ Merge develop to homolog

✅ Merge develop to homolog #34

Workflow file for this run

name: ci
on:
pull_request:
branches:
- homolog
types:
- closed
workflow_dispatch:
jobs:
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: Criação da Imagem docker
uses: docker/[email protected]
with:
context: ./
file: ./Dockerfile
push: true
tags: |
secultceara/mapasculturais:homolog
DEPLOY:
needs: BUILD
runs-on: mapahomolog
steps:
- name: Pull da imagem do dockerhub
run: sudo docker pull secultceara/mapasculturais:homolog
- name: Restart do docker-compose para atualizar o container com a nova imagem
run: cd /opt/docker/mapa5 && sudo docker-compose down && sudo docker-compose up -d