Skip to content

GH action to build upload service image #3

GH action to build upload service image

GH action to build upload service image #3

Workflow file for this run

name: Build and push images
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: build images
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build ai-demo-upload-service
id: build-ai-demo-upload-service
run: docker build services/upload-service --file services/upload-service/Dockerfile -t quay.io/kevent-mesh/ai-demo-upload-service:main
- name: Push ai-demo-upload-service
id: push-ai-demo-upload-service
uses: redhat-actions/push-to-registry@v2
with:
image: quay.io/kevent-mesh/ai-demo-upload-service
tags: main
registry: quay.io/kevent-mesh
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Print ai-demo-upload-service image url
run: echo "ai-demo-upload-service image pushed to ${{ steps.push-ai-demo-upload-service.outputs.registry-paths }}"