CI/CD без рестарта докера

This commit is contained in:
RoyceDa
2026-03-22 18:28:28 +02:00
parent 1eca665a62
commit d2e574d186

View File

@@ -88,8 +88,16 @@ jobs:
find packs -maxdepth 3 -type f 2>/dev/null || true find packs -maxdepth 3 -type f 2>/dev/null || true
test -n "$(find packs -type f -print -quit 2>/dev/null)" || { echo "packs is empty"; exit 1; } test -n "$(find packs -type f -print -quit 2>/dev/null)" || { echo "packs is empty"; exit 1; }
- name: Install SCP in Docker container - name: Clean files before upload
run: apt-get install -y openssh-client uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SDU_SSH_HOST }}
username: ${{ secrets.SDU_SSH_USERNAME }}
password: ${{ secrets.SDU_SSH_PASSWORD }}
port: 22
script: |
mkdir -p "${{ secrets.SDU_SSH_PACKS }}"
find "${{ secrets.SDU_SSH_PACKS }}" -mindepth 1 -type f -delete
- name: Upload to SSH using SCP - name: Upload to SSH using SCP
uses: appleboy/scp-action@master uses: appleboy/scp-action@master
@@ -101,4 +109,4 @@ jobs:
source: "packs/*" source: "packs/*"
target: "${{ secrets.SDU_SSH_PACKS }}" target: "${{ secrets.SDU_SSH_PACKS }}"
strip_components: 1 strip_components: 1
rm: true rm: false