Skip to content

chore(ci): optimize the size of Docker images #1

chore(ci): optimize the size of Docker images

chore(ci): optimize the size of Docker images #1

Workflow file for this run

name: Build and Push voltaserve/mosaic
on:
push:
branches:
- main
paths:
- "mosaic/**"
pull_request:
branches:
- main
paths:
- "mosaic/**"
jobs:
build_mosaic:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image for mosaic
uses: docker/build-push-action@v3
with:
context: ./mosaic
push: true
tags: voltaserve/mosaic:latest
platforms: linux/amd64,linux/arm64
- name: Cleanup Docker
run: docker system prune -af