Skip to content

Merge pull request #7 from redhat-ai-services/fix_dspa #42

Merge pull request #7 from redhat-ai-services/fix_dspa

Merge pull request #7 from redhat-ai-services/fix_dspa #42

Workflow file for this run

name: Build Image
on:
workflow_dispatch: {}
push:
branches: [main]
jobs:
build:
name: Build Image
runs-on: ubuntu-latest
env:
BASE_IMAGE: "registry.access.redhat.com/ubi9/python-311:latest"
REGISTRY: quay.io/rhiap
IMAGE_NAME: kubeflow-example
MAIN_TAG: latest-${{ github.sha }}
steps:
- name: Checkout
uses: actions/checkout@v2
# Setup S2i and Build container image
- name: Setup and Build
id: build_image
uses: redhat-actions/s2i-build@v2
with:
builder_image: ${{ env.BASE_IMAGE }}
image: ${{ env.IMAGE_NAME }}
tags: ${{ env.MAIN_TAG }}
- name: Add tags
run: |
docker tag ${{ env.IMAGE_NAME }}:${{ env.MAIN_TAG }} ${{ env.IMAGE_NAME }}:latest
# Push Image to Quay registry
- name: Push To Quay Action
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build_image.outputs.image }}
tags: ${{ steps.build_image.outputs.tags }} latest
registry: ${{ env.REGISTRY }}
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}