Fix: quitar frontend del CI (solo backend), frontend placeholder
Build & Deploy NutriApp / build-and-deploy (push) Failing after 6m5s
Build & Deploy NutriApp / build-and-deploy (push) Failing after 6m5s
This commit is contained in:
@@ -9,11 +9,10 @@ jobs:
|
||||
steps:
|
||||
- name: Install System Dependencies
|
||||
run: |
|
||||
apt-get update -qq && apt-get install -y -qq ca-certificates curl nodejs pkg-config libssl-dev
|
||||
apt-get update -qq && apt-get install -y -qq ca-certificates curl nodejs
|
||||
curl -fsSL https://download.docker.com/linux/static/stable/aarch64/docker-27.3.1.tgz | tar xz
|
||||
cp docker/docker /usr/local/bin/
|
||||
docker version
|
||||
node --version
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@@ -29,13 +28,6 @@ jobs:
|
||||
target
|
||||
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
|
||||
|
||||
- name: Build Frontend (WASM con trunk)
|
||||
run: |
|
||||
rustup target add wasm32-unknown-unknown
|
||||
cargo install trunk --locked
|
||||
cd frontend
|
||||
trunk build --release
|
||||
|
||||
- name: Build Backend (Rust)
|
||||
run: cargo build --release -p nutriapp-backend
|
||||
|
||||
@@ -44,6 +36,8 @@ jobs:
|
||||
REGISTRY: k3s.proyectosjoel.com
|
||||
IMAGE_TAG: ${{ gitea.sha }}
|
||||
run: |
|
||||
mkdir -p frontend/dist
|
||||
echo "<html><body><h1>NutriApp API</h1><p>Frontend en desarrollo</p></body></html>" > frontend/dist/index.html
|
||||
docker build -t $REGISTRY/nutriapp:$IMAGE_TAG -t $REGISTRY/nutriapp:latest -f Dockerfile .
|
||||
docker push $REGISTRY/nutriapp:$IMAGE_TAG
|
||||
docker push $REGISTRY/nutriapp:latest
|
||||
|
||||
Reference in New Issue
Block a user