Skip to content

build image with prebuilt lib #50

build image with prebuilt lib

build image with prebuilt lib #50

name: build image with prebuilt lib
on:
workflow_dispatch:
inputs:
imageTag:
description: image tag
required: true
type: string
jobs:
docker-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Docker Login
uses: docker/login-action@v3.3.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: image=moby/buildkit:master
- name: Build & Pushing hami image
uses: docker/build-push-action@v6.13.0
with:
context: .
file: docker/Dockerfile.withlib
platforms: linux/arm64,linux/amd64
build-args: |
VERSION=${{ inputs.imageTag }}
GOLANG_IMAGE=golang:1.24.4-bullseye
NVIDIA_IMAGE=nvidia/cuda:12.2.0-devel-ubuntu20.04
DEST_DIR=/usr/local
tags: beclab/hami:${{ inputs.imageTag }}
push: true