mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Add disk space cleanup and reduce retry wait time
Updated the workflow to include disk space cleanup and adjusted retry wait time.
This commit is contained in:
16
.github/workflows/onpush_builder.yaml
vendored
16
.github/workflows/onpush_builder.yaml
vendored
@@ -170,6 +170,16 @@ jobs:
|
|||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Free disk space (runner)
|
||||||
|
uses: endersonmenezes/free-disk-space@v3
|
||||||
|
with:
|
||||||
|
remove_android: true
|
||||||
|
remove_dotnet: true
|
||||||
|
remove_haskell: true
|
||||||
|
remove_tool_cache: true
|
||||||
|
remove_swap: true
|
||||||
|
rm_cmd: "rmz"
|
||||||
|
rmz_version: "3.1.1"
|
||||||
- name: Build ${{ matrix.addon }} add-on (attempt 1)
|
- name: Build ${{ matrix.addon }} add-on (attempt 1)
|
||||||
id: builderstep1
|
id: builderstep1
|
||||||
if: steps.check.outputs.build_arch == 'true' && steps.dockerfile_check.outputs.has_dockerfile == 'true'
|
if: steps.check.outputs.build_arch == 'true' && steps.dockerfile_check.outputs.has_dockerfile == 'true'
|
||||||
@@ -180,17 +190,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
args: |
|
args: |
|
||||||
${{ env.BUILD_ARGS }} \
|
${{ env.BUILD_ARGS }} \
|
||||||
--no-cache \
|
|
||||||
--${{ matrix.arch }} \
|
--${{ matrix.arch }} \
|
||||||
--target "/data/${{ matrix.addon }}" \
|
--target "/data/${{ matrix.addon }}" \
|
||||||
--image "${{ steps.check.outputs.image }}" \
|
--image "${{ steps.check.outputs.image }}" \
|
||||||
--docker-hub "ghcr.io/${{ github.repository_owner }}" \
|
--docker-hub "ghcr.io/${{ github.repository_owner }}" \
|
||||||
--addon
|
--addon
|
||||||
|
|
||||||
- name: Wait 3 minutes before retry
|
- name: Wait 1 minute before retry
|
||||||
if: steps.check.outputs.build_arch == 'true' && steps.dockerfile_check.outputs.has_dockerfile == 'true' && steps.builderstep1.outcome == 'failure'
|
if: steps.check.outputs.build_arch == 'true' && steps.dockerfile_check.outputs.has_dockerfile == 'true' && steps.builderstep1.outcome == 'failure'
|
||||||
run: |
|
run: |
|
||||||
sleep 180
|
sleep 60
|
||||||
|
|
||||||
- name: Build ${{ matrix.addon }} add-on (attempt 2)
|
- name: Build ${{ matrix.addon }} add-on (attempt 2)
|
||||||
if: steps.check.outputs.build_arch == 'true' && steps.dockerfile_check.outputs.has_dockerfile == 'true' && steps.builderstep1.outcome == 'failure'
|
if: steps.check.outputs.build_arch == 'true' && steps.dockerfile_check.outputs.has_dockerfile == 'true' && steps.builderstep1.outcome == 'failure'
|
||||||
@@ -200,6 +209,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
args: |
|
args: |
|
||||||
${{ env.BUILD_ARGS }} \
|
${{ env.BUILD_ARGS }} \
|
||||||
|
--no-cache \
|
||||||
--${{ matrix.arch }} \
|
--${{ matrix.arch }} \
|
||||||
--target "/data/${{ matrix.addon }}" \
|
--target "/data/${{ matrix.addon }}" \
|
||||||
--image "${{ steps.check.outputs.image }}" \
|
--image "${{ steps.check.outputs.image }}" \
|
||||||
|
|||||||
Reference in New Issue
Block a user