Skip to content

🚑 Fix 'build-image' goal #39

🚑 Fix 'build-image' goal

🚑 Fix 'build-image' goal #39

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: |
if [ "${{ github.ref }}" != 'refs/heads/main' ] && [ "${{ github.ref }}" != 'refs/heads/develop' ]; then
SUPPORTED_PYTHON_VERSIONS="3.9 3.12"
fi
make build-and-push-all-images
- name: 🎉 Image digest
run: echo ${{ steps.docker_build.outputs.digest }}