Add Gitea Actions workflow
This commit is contained in:
parent
0de293ce1b
commit
51af0014a7
36
.gitea/workflows/ci.yml
Normal file
36
.gitea/workflows/ci.yml
Normal file
@ -0,0 +1,36 @@
|
||||
name: CI/CD Pipeline
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build and Deploy with Docker Compose
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Build API Docker Image
|
||||
run: |
|
||||
docker build -t phroncare-api -f phroncare.API/Dockerfile .
|
||||
|
||||
- name: Build UI Docker Image
|
||||
run: |
|
||||
docker build -t phroncare-ui -f phroncare.uiblazor/Dockerfile .
|
||||
|
||||
- name: Set up Docker Compose
|
||||
run: |
|
||||
mkdir -p /tmp/phroncare
|
||||
cp docker-compose.yml /tmp/phroncare
|
||||
cd /tmp/phroncare
|
||||
docker-compose up -d # Lanza los contenedores en segundo plano
|
||||
Loading…
x
Reference in New Issue
Block a user