Skip to content

fix: clean up space

fix: clean up space #2

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- fix/mili-sec-per-block
workflow_dispatch:
jobs:
image-build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Clean up space
run: |
sudo apt-get autoclean -y
sudo apt-get autoremove --purge -y
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/.ghcup
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: energyweb/${{ github.event.repository.name }}
tags: |
type=raw,value=latest
type=sha,format=short
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/amd64, linux/386, linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Log out of Docker Hub
run: docker logout