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:
|
jobs:
|
||||||
build_and_deploy:
|
build_and_deploy:
|
||||||
runs-on: linux
|
runs-on: linux
|
||||||
|
container:
|
||||||
|
image: alpine:3.20
|
||||||
|
options: --entrypoint /bin/sh
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository from local Gitea
|
- name: Install tools
|
||||||
run: |
|
run: |
|
||||||
git clone http://gitea:3000/${{ gitea.repository }} .
|
apk add --no-cache bash git openssh-client rsync podman-cli
|
||||||
git checkout $GITEA_REF_NAME
|
- 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
|
# - name: Checkout Repository
|
||||||
# uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
# rsync -az --delete ./ $TARGET_USER@$TARGET_HOST:$APP_DIR/
|
# rsync -az --delete ./ $TARGET_USER@$TARGET_HOST:$APP_DIR/
|
||||||
|
|
||||||
- name: Copy code to target host
|
# - name: Copy code to target host
|
||||||
run: |
|
# run: |
|
||||||
scp -r ./ $TARGET_USER@$TARGET_HOST:$APP_DIR/
|
# scp -r ./ $TARGET_USER@$TARGET_HOST:$APP_DIR/
|
||||||
|
|
||||||
- name: Build container on target host
|
- name: Build container on target host
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user