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 voltaserve/conversion
on:
push:
branches:
- main
paths:
- "conversion/**"
pull_request:
branches:
- main
paths:
- "conversion/**"
jobs:
build_conversion:
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 conversion
uses: docker/build-push-action@v3
with:
context: ./conversion
push: true
tags: voltaserve/conversion:latest
platforms: linux/amd64,linux/arm64
- name: Cleanup Docker
run: docker system prune -af