Skip to content

Commit

Permalink
Adds cleanup job that runs after all jobs.
Browse files Browse the repository at this point in the history
  • Loading branch information
derkaiserreich committed Aug 29, 2022
1 parent b4c9fab commit 89a60ed
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,12 @@ jobs:
- name: Upload binaries
run: >-
scp -v structr-binaries/target/structr-*.deb structr.com:/files/repositories/upload > /dev/null 2>&1 &&
scp -v structr-binaries/target/structr-*-dist.zip structr.com:/files/repositories/upload >/dev/null 2>&1
scp -v structr-binaries/target/structr-*-dist.zip structr.com:/files/repositories/upload >/dev/null 2>&1
cleanup-system:
runs-on: self-hosted
if: always()
needs: [run-tests, build-and-deploy]
steps:
- name: Prune docker containers
run: docker container prune -a -f

0 comments on commit 89a60ed

Please sign in to comment.