Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,22 +114,19 @@ jobs:
needs: [push_images]
steps:
- uses: actions/checkout@v4

- name: Debug file structure
run: |
echo "Current directory: $(pwd)"
echo "Listing all files and directories:"
ls -R

# ----- НОВЫЕ ШАГИ -----
- name: Create deployment archive
run: tar -czvf deploy.tar.gz docker-compose.yml configs

# ----- ИЗМЕНЕННЫЙ ШАГ -----
- name: Transfer Files to Server
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOSTING_SERVER }}
username: ${{ secrets.HOSTING_NAME }}
password: ${{ secrets.HOSTING_PASSWORD }}
source: |
./docker-compose.yml
./configs
source: "deploy.tar.gz" # Передаем только один файл
target: "/myPath"

- name: Deploy to Server
Expand All @@ -142,6 +139,11 @@ jobs:
mkdir -p /myPath
cd /myPath

echo "Unpacking deployment files..."
tar -xzvf deploy.tar.gz

rm deploy.tar.gz

export GRAFANA_ADMIN_PASSWORD=${{ secrets.GRAFANA_ADMIN_PASSWORD }}
export SPOTIFY_CLIENT_ID=${{ secrets.SPOTIFY_CLIENT_ID }}
export SPOTIFY_CLIENT_SECRET=${{ secrets.SPOTIFY_CLIENT_SECRET }}
Expand Down