Skip to content

build_aic_eval_image #18

build_aic_eval_image

build_aic_eval_image #18

name: build_aic_eval_image
on:
workflow_dispatch:
inputs:
tag:
description: "Tag of the built docker image"
required: true
type: string
default: "latest"
push:
description: "Whether to push the docker image"
required: true
type: boolean
default: true
defaults:
run:
shell: bash
jobs:
build-aic-eval-image:
name: Build and Push AIC Eval Image
runs-on: [self-hosted, linux, x64]
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to docker
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push aic_eval docker image
uses: docker/build-push-action@v6
with:
push: ${{ github.event.inputs.push }}
tags: ghcr.io/intrinsic-dev/aic/aic_eval:${{ github.event.inputs.tag }}
file: ./docker/aic_eval/Dockerfile
no-cache: true
- name: Cleanup workspace
run: |
echo "Cleaning up GITHUB_WORKSPACE..."
rm -rf "${GITHUB_WORKSPACE:?}/"* || true
rm -rf "${GITHUB_WORKSPACE:?}/".??* || true
shell: bash
if: always()