Created
May 30, 2021 21:28
-
-
Save diyor28/17fbbb9bebfbc8f4346d7b51dec12b05 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Cleanup on branch removal | |
| on: [ delete ] | |
| jobs: | |
| build: | |
| runs-on: [ self-hosted, staging ] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Cleanup | |
| run: COMPOSE_PROJECT_NAME=${{ github.event.ref }} docker-compose down --volumes --remove-orphans --rmi all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment