Skip to content

(backend): Refactor MLflow plugin API server impl to support general … #151

(backend): Refactor MLflow plugin API server impl to support general …

(backend): Refactor MLflow plugin API server impl to support general … #151

name: Build tools images
# This workflow is disabled for downstream.
on: []
# push:
# branches:
# - master
# - main
# - stable
# - 'release-*'
# - 'rhoai-*'
# pull_request:
# branches:
# - master
# - 'release-*'
# workflow_dispatch: {}
permissions:
contents: read
packages: write
env:
IMAGE_REGISTRY: ghcr.io
IMAGE_ORG: ${{ github.repository_owner }}
IMAGE_TAG: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref_name }}
concurrency:
group: build-tools-images-${{ github.ref_name }}
cancel-in-progress: false
jobs:
build-tools:
name: Build tools images
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Read frontend Node version
id: frontend_node
run: echo "version=$(tr -d '\r\n' < frontend/.nvmrc | sed 's/^v//')" >> "$GITHUB_OUTPUT"
- name: Log in to the Container registry
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ${{ env.IMAGE_REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push api-generator
id: build_api
uses: docker/build-push-action@v6
with:
context: .
file: backend/api/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: |
${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_ORG }}/kfp-api-generator:${{ env.IMAGE_TAG }}
- name: Build and push release tools
uses: docker/build-push-action@v6
with:
context: .
file: test/release/Dockerfile.release
push: ${{ github.event_name != 'pull_request' }}
build-args: |
BASE_IMAGE=${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_ORG }}/kfp-api-generator:${{ env.IMAGE_TAG }}
NODE_VERSION=${{ steps.frontend_node.outputs.version }}
tags: |
${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_ORG }}/kfp-release:${{ env.IMAGE_TAG }}