Configura deploy automático via Gitea Actions
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 2m18s
Details
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 2m18s
Details
This commit is contained in:
parent
b76e2eeaa9
commit
3d683ac68a
|
|
@ -0,0 +1,28 @@
|
||||||
|
name: Build and Deploy (Gitea)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Build Manager
|
||||||
|
run: |
|
||||||
|
cd manager
|
||||||
|
docker build --no-cache -t edumanager:local .
|
||||||
|
|
||||||
|
- name: Build Portal
|
||||||
|
run: |
|
||||||
|
cd portal
|
||||||
|
docker build --no-cache -t portalaluno:local .
|
||||||
|
|
||||||
|
- name: Deploy to Portainer
|
||||||
|
run: |
|
||||||
|
docker service update --force --image edumanager:local edumanager-v2_edumanager
|
||||||
|
docker service update --force --image portalaluno:local edumanager-v2_portalaluno
|
||||||
Loading…
Reference in New Issue