Skip to content

fix trailing whitespace #76

fix trailing whitespace

fix trailing whitespace #76

name: Build and push image
on:
push:
branches:
- 'main'
workflow_dispatch:
jobs:
build-and-push:
if: github.repository_owner == 'rh-ai-quickstart'
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: ai-virtual-agent
context: .
chart: deploy/cluster/helm/Chart.yaml
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Quay.io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Extract version from Chart.yaml
id: version
run: |
version=$(grep '^appVersion:' ${{ matrix.chart }} | awk '{print $2}')
echo "tag=$version" >> $GITHUB_OUTPUT
- name: Build and push ${{ matrix.name }}
uses: docker/build-push-action@v5
with:
context: ${{ matrix.context }}
file: deploy/cluster/Containerfile
push: true
tags: quay.io/ecosystem-appeng/${{ matrix.name }}:${{ steps.version.outputs.tag }}