Skip to content

Commit

Permalink
Refactor Docker CI workflow to simplify service configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
VikramxD committed Oct 23, 2024
1 parent ce4282f commit c36a8db
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/docker-ci-serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- service: image-to-video
context: serverless/image-to-video
dockerfile: serverless/image-to-video/Dockerfile
- service: text-to-image
context: serverless/text-to-image
dockerfile: serverless/text-to-image/Dockerfile
- service: inpainting
context: serverless/inpainting
dockerfile: serverless/inpainting/Dockerfile
- service: outpainting
context: serverless/outpainting
dockerfile: serverless/outpainting/Dockerfile
service:
- image-to-video
- text-to-image
- inpainting
- outpainting

steps:
- name: Checkout code
Expand All @@ -48,7 +40,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
file: ${{ matrix.dockerfile }}
file: serverless/${{ matrix.service }}/Dockerfile
push: true
tags: ${{secrets.DOCKER_USERNAME }}/picpilot_${{ matrix.service }}:latest

Expand Down

0 comments on commit c36a8db

Please sign in to comment.