Skip to content

Commit

Permalink
Optionally free up disk space before devcontainer build (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
AttilaGombosER authored Aug 10, 2024
1 parent 610fd14 commit 2bdb5cb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Create Python distribution packages: source, wheel and Debian packages
- `use-devcontainer`: Create packages using a devcontainer (default: `false`)
- `pre-build-command`: Command to run before the package creation
- `post-build-command`: Command to run after the package creation
- `add-source-dist`: Add source distribution to the package creation (default: `true`)
- `install-packaging-tools`: Install [Python packaging tools](https://github.com/EffectiveRange/packaging-tools/tree/main/python) (default: `true`)
- `add-source-dist`: Add source distribution to the package creation (default: `true`)
- `add-wheel-dist`: Add wheel distribution to the package creation (default: `true`)
- `debian-dist-type`: Type of the Debian package to create: `fpm-deb`/`dh-virtualenv`/`none` (default: `none`)
- `debian-dist-command`: Command to run for the Debian package creation
Expand All @@ -39,6 +39,7 @@ Create Python distribution packages: source, wheel and Debian packages

### Cross-platform package creation

- `free-disk-space`: Free up disk space before build (default: `false`)
- `docker-registry`: Docker registry to use (default: `docker.io`)
- `docker-username`: Docker registry username
- `docker-password`: Docker registry password
Expand Down
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ inputs:
required: false
default: '3.9'

free-disk-space:
description: 'Free disk space before running'
required: false
default: 'false'
docker-registry:
description: 'Docker registry'
required: false
Expand Down Expand Up @@ -136,6 +140,7 @@ runs:
add-wheel-dist: ${{ inputs.add-wheel-dist }}
debian-dist-type: ${{ inputs.debian-dist-type }}
debian-dist-command: ${{ inputs.debian-dist-command }}
free-disk-space: ${{ inputs.free-disk-space }}
docker-registry: ${{ inputs.docker-registry }}
docker-username: ${{ inputs.docker-username }}
docker-password: ${{ inputs.docker-password }}
Expand Down
7 changes: 6 additions & 1 deletion devcontainer/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ inputs:
description: 'Debian packaging custom command'
required: false

free-disk-space:
description: 'Free disk space before running'
required: false
default: 'false'
docker-registry:
description: 'Docker registry'
required: false
Expand All @@ -47,7 +51,8 @@ inputs:
runs:
using: 'composite'
steps:
- name: Free disk space
- if : ${{ inputs.free-disk-space == 'true' }}
name: Free disk space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
Expand Down

0 comments on commit 2bdb5cb

Please sign in to comment.