Add docker build-push gh action #3
This file contains 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: My build action requiring more space | |
on: pull_request | |
jobs: | |
build: | |
name: Build my artifact | |
runs-on: ubuntu-latest | |
steps: | |
- name: Free space before | |
run: | | |
echo "Free space before:" | |
df -h | |
- name: Maximize build disk space | |
uses: easimon/maximize-build-space@master | |
with: | |
# need space in /var for Docker images | |
root-reserve-mb: 30000 | |
remove-dotnet: true | |
remove-android: true | |
remove-haskell: true | |
remove-codeql: true | |
remove-docker-images: true | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Free space after | |
run: | | |
echo "Free space after:" | |
df -h |