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