Skip to content

adding new statistics (#83) #1

adding new statistics (#83)

adding new statistics (#83) #1

name: Build Base Image
# Run manually or when tool versions change in Dockerfile.base
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'backend/Dockerfile.base'
jobs:
build-base:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push base image
uses: docker/build-push-action@v6
with:
context: ./backend
file: ./backend/Dockerfile.base
push: true
platforms: linux/amd64,linux/arm64
tags: mixeway/flow-api-base:latest
cache-from: type=gha,scope=base
cache-to: type=gha,mode=max,scope=base