Skip to content

Commit 03e784b

Browse files
committed
ci: fix aws
1 parent 25efe48 commit 03e784b

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

.github/workflows/deploy-aws.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- name: Free up disk space
16-
run: |
17-
echo "🔧 Cleaning up disk space to avoid 'no space left' error..."
18-
sudo docker system prune -af
19-
sudo rm -rf /usr/share/dotnet
20-
sudo rm -rf /usr/local/lib/android
21-
sudo apt-get clean
22-
df -h
23-
2415
- name: Checkout code
2516
uses: actions/checkout@v4
2617

@@ -48,11 +39,11 @@ jobs:
4839
GHCR_REPO=$(echo '${{ github.event.repository.name }}' | tr '[:upper:]' '[:lower:]')
4940
GHCR_TAG=$(
5041
if [[ -n "${{ github.event.inputs.image }}" ]]; then
51-
echo "${{ github.event.inputs.image }}"
42+
echo "${{ github.event.inputs.image }}"
5243
elif [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
53-
echo "${{ github.sha }}"
44+
echo "${{ github.sha }}"
5445
else
55-
echo "dev-${{ github.sha }}"
46+
echo "dev-${{ github.sha }}"
5647
fi
5748
)
5849
DB_USERNAME=${{ secrets.DB_USERNAME }}
@@ -84,5 +75,5 @@ jobs:
8475
key: ${{ secrets.SERVER_SSH_KEY }}
8576
script: |
8677
cd ~/srv/app
87-
docker compose -f docker-compose.prod.deploy.yml --env-file .env pull
88-
docker compose -f docker-compose.prod.deploy.yml --env-file .env up -d
78+
docker compose -f docker-compose.prod.deploy.yml pull
79+
docker compose -f docker-compose.prod.deploy.yml up -d

0 commit comments

Comments
 (0)