feat: Add Claude skills, agents, adapt .gitignore, adapt pipeline.sh with different cache location
This commit is contained in:
12
pipeline.sh
12
pipeline.sh
@@ -13,6 +13,7 @@ TEMP_DIR=$(mktemp -d)
|
||||
DEPLOY_FLAG=false
|
||||
RUN_FRONTEND=true
|
||||
RUN_BACKEND=true
|
||||
BUILDX_CACHE_BASE="/Volumes/Lenovo SSD/.buildx-cache"
|
||||
|
||||
cleanup() {
|
||||
rm -rf "$TEMP_DIR"
|
||||
@@ -152,13 +153,14 @@ frontend_job() {
|
||||
log_success "Type checking passed"
|
||||
|
||||
log_info "Building Docker image..."
|
||||
mkdir -p "$BUILDX_CACHE_BASE/frontend"
|
||||
docker buildx build \
|
||||
--platform linux/amd64 \
|
||||
--tag "gitea.lugnas.de/denis/legalconsenthub:latest" \
|
||||
--tag "gitea.lugnas.de/denis/legalconsenthub:$GIT_SHA" \
|
||||
--file ./Dockerfile \
|
||||
--cache-from type=local,src="$SCRIPT_DIR/.buildx-cache/frontend" \
|
||||
--cache-to type=local,dest="$SCRIPT_DIR/.buildx-cache/frontend",mode=max \
|
||||
--cache-from type=local,src="$BUILDX_CACHE_BASE/frontend" \
|
||||
--cache-to type=local,dest="$BUILDX_CACHE_BASE/frontend",mode=max \
|
||||
--push \
|
||||
..
|
||||
if [ $? -ne 0 ]; then
|
||||
@@ -213,14 +215,14 @@ backend_job() {
|
||||
log_success "Tests passed"
|
||||
|
||||
log_info "Building Docker image..."
|
||||
mkdir -p "$SCRIPT_DIR/.buildx-cache/backend"
|
||||
mkdir -p "$BUILDX_CACHE_BASE/backend"
|
||||
docker buildx build \
|
||||
--platform linux/amd64 \
|
||||
--tag "gitea.lugnas.de/denis/legalconsenthub-backend:latest" \
|
||||
--tag "gitea.lugnas.de/denis/legalconsenthub-backend:$GIT_SHA" \
|
||||
--file ./Dockerfile \
|
||||
--cache-from type=local,src="$SCRIPT_DIR/.buildx-cache/backend" \
|
||||
--cache-to type=local,dest="$SCRIPT_DIR/.buildx-cache/backend",mode=max \
|
||||
--cache-from type=local,src="$BUILDX_CACHE_BASE/backend" \
|
||||
--cache-to type=local,dest="$BUILDX_CACHE_BASE/backend",mode=max \
|
||||
--push \
|
||||
..
|
||||
if [ $? -ne 0 ]; then
|
||||
|
||||
Reference in New Issue
Block a user