From d673c3bb3cf273598f33c1d93573f314162d5b67 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Thu, 17 Apr 2025 08:11:38 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20arm64?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .woodpecker/build.yml | 2 +- Dockerfile | 2 +- src/main.rs | 31 +++++++++++++++++-------------- 3 files changed, 19 insertions(+), 16 deletions(-) diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index c2e0529..bf0bc67 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -6,7 +6,7 @@ steps: - name: build image: woodpeckerci/plugin-docker-buildx settings: - platforms: linux/amd64 + platforms: linux/amd64,linux/arm64 repo: git.hydrar.de/jmarya/pacco registry: git.hydrar.de tags: latest diff --git a/Dockerfile b/Dockerfile index b556f22..828a565 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ WORKDIR /app RUN cargo build --release -FROM archlinux +FROM git.hydrar.de/navos/navos:latest RUN pacman -Syu --noconfirm openssl-1.1 tar xz zstd curl base-devel git rsync diff --git a/src/main.rs b/src/main.rs index 20cd139..ea73c2c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -56,20 +56,23 @@ async fn launch(config: String) { ..Default::default() }) .mount_assets() - .mount("/", routes![ - routes::index_page, - routes::pkg_route, - routes::push::upload_pkg, - routes::user::login, - routes::user::login_post, - routes::user::account_page, - routes::ui::pkg_ui, - routes::ui::repo_ui, - routes::user::new_api_key, - routes::user::end_session, - routes::user::change_password, - routes::user::change_password_post - ]) + .mount( + "/", + routes![ + routes::index_page, + routes::pkg_route, + routes::push::upload_pkg, + routes::user::login, + routes::user::login_post, + routes::user::account_page, + routes::ui::pkg_ui, + routes::ui::repo_ui, + routes::user::new_api_key, + routes::user::end_session, + routes::user::change_password, + routes::user::change_password_post + ], + ) .manage(config) .manage(shell) .launch()