From e2a9bcbc9364f6067477c8bc069f6e2db741c66e Mon Sep 17 00:00:00 2001 From: nihonium Date: Thu, 9 Oct 2025 14:46:16 +0300 Subject: [PATCH] feat: added backend/frontend to buildx --- deploy/buildx.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/deploy/buildx.sh b/deploy/buildx.sh index 96e0fe4..8c19bc9 100644 --- a/deploy/buildx.sh +++ b/deploy/buildx.sh @@ -1,2 +1,7 @@ -#!/bin/bash -docker buildx build --platform linux/amd64 -t meowgit.nekoea.red/nihonium/forgejo-runner:latest -f ./Dockerfiles/Dockerfile_forgejo-runner . --push \ No newline at end of file +#!/usr/bin/env bash + +export BACKEND_API_BASE_URL="http://127.0.0.1:8080" + +docker buildx build --platform linux/amd64 -t meowgit.nekoea.red/nihonium/forgejo-runner:latest -f ./Dockerfiles/Dockerfile_forgejo-runner . --push +docker buildx build --build-arg VITE_BACKEND_API_BASE_URL=${BACKEND_API_BASE_URL} --platform linux/amd64 -t meowgit.nekoea.red/nihonium/nyanimedb-frontend:latest -f .\Dockerfiles\Dockerfile_frontend . --push +docker buildx build --platform linux/amd64 -t meowgit.nekoea.red/nihonium/nyanimedb-backend:latest -f .\Dockerfiles\Dockerfile_backend . --push \ No newline at end of file