test local clone
Some checks failed
Build and Deploy Container / build_and_deploy (push) Failing after 4s
Some checks failed
Build and Deploy Container / build_and_deploy (push) Failing after 4s
This commit is contained in:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user