Skip to content

Enable Docker's BuildKit in workflow #21

Enable Docker's BuildKit in workflow

Enable Docker's BuildKit in workflow #21

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the backend Docker image and push
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: openpro-backend
registry: ghcr.io
dockerfile: backend/Dockerfile
directory: backend
addLatest: true
addTimestamp: true
multiPlatform: true
platform: linux/amd64,linux/arm64,linux/arm/v7
enableBuildKit: true
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build the frontend Docker image and push
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: openpro-frontend
registry: ghcr.io
dockerfile: frontend/Dockerfile
directory: frontend
addLatest: true
addTimestamp: true
multiPlatform: true
platform: linux/amd64,linux/arm64,linux/arm/v7
enableBuildKit: true
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}