Skip to content

✨ Use 'build-all-images' Makefile goal in github action #20

✨ Use 'build-all-images' Makefile goal in github action

✨ Use 'build-all-images' Makefile goal in github action #20

name: Build and Publish
on:
push:
branches: [main, develop]
pull_request:
jobs:
build-and-push-docker-images:
name: Build and push Docker images
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Clean up unnecessary directories
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Build and push image
run: |
make build-all-images
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}