From fbb70fa6f2b93be5e47c50158804fb7a99bf7de7 Mon Sep 17 00:00:00 2001 From: Michal Vanko Date: Wed, 18 Sep 2024 12:47:25 +0200 Subject: [PATCH] deploy script --- .gitea/workflows/release.yaml | 14 +++++++++----- axum_server/justfile | 3 +++ axum_server/src/main.rs | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 563cfcb..24cecd1 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -11,12 +11,16 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v2 + - name: cache + uses: Swatinem/rust-cache@v2 + working-directory: axum_server - uses: taiki-e/install-action@just - - run: cd axum_server && just prod & - - uses: iFaxity/wait-on-action@v1.2.1 - with: - resource: http://localhost:3001 + - uses: JarvusInnovations/background-action@v1 + run: cd axum_server && just prod + working-directory: axum_server + wait-on: http://localhost:3001 + wait-for: 10m + tail: true - run: cd axum_server && just ssg - uses: actions/upload-artifact@v4 with: diff --git a/axum_server/justfile b/axum_server/justfile index 5244e13..4626a7f 100644 --- a/axum_server/justfile +++ b/axum_server/justfile @@ -67,3 +67,6 @@ export: clean just wait_for_port just ssg just kill + +deploy: + rsync -avz -e ssh ./dist/ michalvanko@katelyn:.config/containers/systemd/michalvankodev-site/dist/ diff --git a/axum_server/src/main.rs b/axum_server/src/main.rs index d3fc4b7..59b43be 100644 --- a/axum_server/src/main.rs +++ b/axum_server/src/main.rs @@ -50,9 +50,9 @@ async fn main() { } // TODO Socials +// - fotos // TODO ul li article styles // TODO header height difference -// - fotos // TODO Colors // TODO print css and other 404 css linked in base.html // TODO go live pipeline