From 31555d83867af7ef4cad47e7255524ec886d155c Mon Sep 17 00:00:00 2001 From: Clemens Hering Date: Sun, 9 Nov 2025 08:38:52 +0100 Subject: [PATCH] test local clone --- .gitea/workflows/deploy.yaml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index a30c0da..6dcf595 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -18,18 +18,29 @@ on: jobs: build_and_deploy: runs-on: linux + container: + image: alpine:3.20 + options: --entrypoint /bin/sh steps: - - name: Checkout repository from local Gitea + - name: Install tools run: | - git clone http://gitea:3000/${{ gitea.repository }} . - git checkout $GITEA_REF_NAME + apk add --no-cache bash git openssh-client rsync podman-cli + - name: Checkout repository + run: git clone git@gitea.smb-corp.de:${{ gitea.repository }} . + - name: Deploy via SSH + run: | + rsync -az --delete ./ $TARGET_USER@$TARGET_HOST:$APP_DIR/ +# - name: Checkout repository from local Gitea +# run: | +# git clone http://gitea:3000/${{ gitea.repository }} . +# git checkout $GITEA_REF_NAME # - name: Checkout Repository # uses: actions/checkout@v4 # rsync -az --delete ./ $TARGET_USER@$TARGET_HOST:$APP_DIR/ - - name: Copy code to target host - run: | - scp -r ./ $TARGET_USER@$TARGET_HOST:$APP_DIR/ +# - name: Copy code to target host +# run: | +# scp -r ./ $TARGET_USER@$TARGET_HOST:$APP_DIR/ - name: Build container on target host run: |