CI/CD: Adicionado yml para ContinousDelivery no ambiente de dev
This commit is contained in:
parent
8e29dde2a1
commit
f08a65de28
24
.gitea/workflows/deploy-dev.yml
Normal file
24
.gitea/workflows/deploy-dev.yml
Normal file
@ -0,0 +1,24 @@
|
||||
name: Deploy Dev
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Atualizar código na VM Dev
|
||||
run: |
|
||||
cd /opt/omnichannel/frontend
|
||||
git pull origin dev
|
||||
|
||||
- name: Copiar env
|
||||
run: |
|
||||
cp /home/desenvolvimento/.envs/omnichannel/frontend.env.development /opt/omnichannel/frontend/.env.development
|
||||
|
||||
- name: Rebuild container
|
||||
run: |
|
||||
cd /opt/omnichannel
|
||||
docker compose up -d --build frontend
|
||||
Loading…
Reference in New Issue
Block a user