pipeline: added cleanup
All checks were successful
pipeline / build-and-push-images (push) Successful in 13s
pipeline / deploy (push) Successful in 7s

This commit is contained in:
2024-11-24 15:25:37 +01:00
parent 6719c7cf3b
commit e7f2f5e41f

View File

@@ -95,3 +95,13 @@ jobs:
source ".env" source ".env"
echo -e "\u001b[36mDeploying Stack: \u001b[37;1mlolstats" echo -e "\u001b[36mDeploying Stack: \u001b[37;1mlolstats"
docker stack deploy -c "docker-compose.yml" "lolstats" --with-registry-auth docker stack deploy -c "docker-compose.yml" "lolstats" --with-registry-auth
- name: Docker Deploy cleanup
run: |
eval "$(ssh-agent -s)"
ssh-add -D
rm /root/.ssh/known_hosts
rm /root/.ssh/id_rsa
docker context use default
docker context rm remote