ci: add cleanup script for the image

This commit is contained in:
Gabriel Arazas 2023-03-21 00:16:39 +08:00
parent b42bc0f722
commit 1cb206f77f
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -14,6 +14,8 @@ jobs:
nix_path: nixpkgs=channel:nixos-unstable nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: | extra_nix_config: |
keep-going = true keep-going = true
- run: |
sudo apt clean
- name: Prepare push to binary cache - name: Prepare push to binary cache
uses: cachix/cachix-action@v10 uses: cachix/cachix-action@v10
if: ${{ github.ref == 'refs/heads/master' }} if: ${{ github.ref == 'refs/heads/master' }}
@ -32,6 +34,8 @@ jobs:
nix_path: nixpkgs=channel:nixos-unstable nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: | extra_nix_config: |
keep-going = true keep-going = true
- run: |
sudo apt clean
- name: Prepare push to binary cache - name: Prepare push to binary cache
uses: cachix/cachix-action@v10 uses: cachix/cachix-action@v10
if: ${{ github.ref == 'refs/heads/master' }} if: ${{ github.ref == 'refs/heads/master' }}