Skip to content

build: Release unnecessary space before starting to build #4

build: Release unnecessary space before starting to build

build: Release unnecessary space before starting to build #4

name: Build and Push Docker image
on:
push:
branches:
- "docker-image"
jobs:
prepare-dataset:
runs-on: ubuntu-latest
environment: docker-container-registry
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Check disk usage
run: du -h
- name: Release space
run: rm -rf "/usr/local/share/boost"
- name: Release more space
run: rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: getwithashish/expchatbot:latest
- name: Check disk usage
run: df -h
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}