From ee949abf861d79713a1c02e5b9c5b7028f705539 Mon Sep 17 00:00:00 2001 From: mafyuh Date: Sun, 9 Jun 2024 16:33:00 +0000 Subject: [PATCH] Delete .forgejo/workflows/CD.yml --- .forgejo/workflows/CD.yml | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 .forgejo/workflows/CD.yml diff --git a/.forgejo/workflows/CD.yml b/.forgejo/workflows/CD.yml deleted file mode 100644 index 27423cb..0000000 --- a/.forgejo/workflows/CD.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Deploy to Hosts -on: - pull_request: - types: [closed] - -jobs: - deploy: - runs-on: docker - if: github.event.pull_request.merged == true - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Configure SSH Key - run: | - mkdir -p ~/.ssh - echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - - - name: Deploy to Hosts - run: | - for folder in $(git diff-tree --no-commit-id --name-only -r "${{ github.event.pull_request.merge_commit_sha }}" | cut -d/ -f1 | sort | uniq) - do - echo "Deploying to $folder" - ./scripts/deploy.sh "$folder" - echo "Deployment for $folder completed successfully" - done