From ceaf022fc9bf89b2afccd47c680d0094d573311e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 5 Jun 2025 07:59:10 +0000 Subject: [PATCH 1/2] Deleted files for issue: gitea-mirror --- ct/gitea-mirror.sh | 83 -------------------------- frontend/public/json/gitea-mirror.json | 35 ----------- install/gitea-mirror-install.sh | 70 ---------------------- 3 files changed, 188 deletions(-) delete mode 100644 ct/gitea-mirror.sh delete mode 100644 frontend/public/json/gitea-mirror.json delete mode 100644 install/gitea-mirror-install.sh diff --git a/ct/gitea-mirror.sh b/ct/gitea-mirror.sh deleted file mode 100644 index 39f2110b..00000000 --- a/ct/gitea-mirror.sh +++ /dev/null @@ -1,83 +0,0 @@ -#!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) -# Copyright (c) 2021-2025 community-scripts ORG -# Author: CrazyWolf13 -# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://github.com/arunavo4/gitea-mirror - -APP="gitea-mirror" -var_tags="${var_tags:-mirror;gitea}" -var_cpu="${var_cpu:-1}" -var_ram="${var_ram:-1024}" -var_disk="${var_disk:-5}" -var_os="${var_os:-debian}" -var_version="${var_version:-12}" -var_unprivileged="${var_unprivileged:-1}" - -header_info "$APP" - -variables -color -catch_errors - -function update_script() { - header_info - check_container_storage - check_container_resources - if [[ ! -d /opt/gitea-mirror ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - RELEASE=$(curl -fsSL https://api.github.com/repos/arunavo4/gitea-mirror/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') - if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then - - msg_info "Stopping Services" - systemctl stop gitea-mirror - msg_ok "Services Stopped" - - msg_info "Backup Data" - mkdir -p /opt/gitea-mirror-backup/data - cp /opt/gitea-mirror/data/* /opt/gitea-mirror-backup/data/ - msg_ok "Backup Data" - - msg_info "Installing Bun" - export BUN_INSTALL=/opt/bun - curl -fsSL https://bun.sh/install | $STD bash - ln -sf /opt/bun/bin/bun /usr/local/bin/bun - ln -sf /opt/bun/bin/bun /usr/local/bin/bunx - msg_ok "Installed Bun" - - rm -rf /opt/gitea-mirror - fetch_and_deploy_gh_release "gitea-mirror" "arunavo4/gitea-mirror" "source" - - msg_info "Updating and rebuilding ${APP} to v${RELEASE}" - cd /opt/gitea-mirror - $STD bun run setup - $STD bun run build - APP_VERSION=$(grep -o '"version": *"[^"]*"' package.json | cut -d'"' -f4) - sudo sed -i.bak "s|^Environment=npm_package_version=.*|Environment=npm_package_version=${APP_VERSION}|" /etc/systemd/system/gitea-mirror.service - msg_ok "Updated and rebuilt ${APP} to v${RELEASE}" - - msg_info "Restoring Data" - cp /opt/gitea-mirror-backup/data/* /opt/gitea-mirror/data - echo "${RELEASE}" >/opt/${APP}_version.txt - msg_ok "Restored Data" - - msg_info "Starting Service" - systemctl daemon-reload - systemctl start gitea-mirror - msg_ok "Service Started" - else - msg_ok "No update required. ${APP} is already at v${RELEASE}" - fi - exit -} - -start -build_container -description - -msg_ok "Completed Successfully!\n" -echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" -echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:4321${CL}" diff --git a/frontend/public/json/gitea-mirror.json b/frontend/public/json/gitea-mirror.json deleted file mode 100644 index 667ff210..00000000 --- a/frontend/public/json/gitea-mirror.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "Gitea-Mirror", - "slug": "gitea-mirror", - "categories": [ - 7 - ], - "date_created": "2025-06-02", - "type": "ct", - "updateable": true, - "privileged": false, - "interface_port": 4321, - "documentation": "https://github.com/arunavo4/gitea-mirror/", - "config_path": "/etc/systemd/system/gitea-mirror.service", - "website": "https://github.com/arunavo4/gitea-mirror/", - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/gitea-mirror.webp", - "description": "Gitea Mirror auto-syncs GitHub repos to your self-hosted Gitea, with a sleek Web UI and easy Docker deployment. ", - "install_methods": [ - { - "type": "default", - "script": "ct/gitea-mirror.sh", - "resources": { - "cpu": 1, - "ram": 1024, - "hdd": 5, - "os": "Debian", - "version": "12" - } - } - ], - "default_credentials": { - "username": null, - "password": null - }, - "notes": [] -} diff --git a/install/gitea-mirror-install.sh b/install/gitea-mirror-install.sh deleted file mode 100644 index d216c3bf..00000000 --- a/install/gitea-mirror-install.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2021-2025 community-scripts ORG -# Author: CrazyWolf13 -# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://github.com/arunavo4/gitea-mirror - -source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" -color -verb_ip6 -catch_errors -setting_up_container -network_check -update_os - -msg_info "Installing dependencies" -$STD apt-get install -y \ - build-essential \ - openssl \ - sqlite3 \ - unzip -msg_ok "Installed Dependencies" - -msg_info "Installing Bun" -export BUN_INSTALL=/opt/bun -curl -fsSL https://bun.sh/install | $STD bash -ln -sf /opt/bun/bin/bun /usr/local/bin/bun -ln -sf /opt/bun/bin/bun /usr/local/bin/bunx -msg_ok "Installed Bun" - -fetch_and_deploy_gh_release "gitea-mirror" "arunavo4/gitea-mirror" "source" - -msg_info "Installing gitea-mirror" -cd /opt/gitea-mirror -$STD bun run setup -$STD bun run build -msg_ok "Installed gitea-mirror" - -msg_info "Creating Services" -JWT_SECRET=$(openssl rand -hex 32) -APP_VERSION=$(grep -o '"version": *"[^"]*"' package.json | cut -d'"' -f4) -cat </etc/systemd/system/gitea-mirror.service -[Unit] -Description=Gitea Mirror -After=network.target -[Service] -Type=simple -WorkingDirectory=/opt/gitea-mirror -ExecStart=/usr/local/bin/bun dist/server/entry.mjs -Restart=on-failure -RestartSec=10 -Environment=NODE_ENV=production -Environment=HOST=0.0.0.0 -Environment=PORT=4321 -Environment=DATABASE_URL=file:/opt/gitea-mirror/data/gitea-mirror.db -Environment=JWT_SECRET=${JWT_SECRET} -Environment=npm_package_version=${APP_VERSION} -[Install] -WantedBy=multi-user.target -EOF -systemctl enable -q --now gitea-mirror -msg_ok "Created Service" - -motd_ssh -customize - -msg_info "Cleaning up" -$STD apt-get -y autoremove -$STD apt-get -y autoclean -msg_ok "Cleaned" From 2ff24ec40fb8f16f785b00a029b34995814fce8d Mon Sep 17 00:00:00 2001 From: "app-header-generator[bot]" <194485257+app-header-generator[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 08:00:27 +0000 Subject: [PATCH 2/2] Update .app files (#522) Co-authored-by: GitHub Actions --- ct/headers/gitea-mirror | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 ct/headers/gitea-mirror diff --git a/ct/headers/gitea-mirror b/ct/headers/gitea-mirror deleted file mode 100644 index 57003b05..00000000 --- a/ct/headers/gitea-mirror +++ /dev/null @@ -1,6 +0,0 @@ - _ __ _ - ____ _(_) /____ ____ _ ____ ___ (_)_____________ _____ - / __ `/ / __/ _ \/ __ `/_____/ __ `__ \/ / ___/ ___/ __ \/ ___/ - / /_/ / / /_/ __/ /_/ /_____/ / / / / / / / / / / /_/ / / - \__, /_/\__/\___/\__,_/ /_/ /_/ /_/_/_/ /_/ \____/_/ -/____/