Skip to content

Commit

Permalink
Update Dockerfiles for serverless functions
Browse files Browse the repository at this point in the history
  • Loading branch information
VikramxD committed Oct 23, 2024
1 parent 40a29ff commit ce4282f
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/docker-ci-serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Docker Build and Push Serverless
on:
push:
branches: [ "main" ]
paths:
- 'serverless/**'
- 'api/**'
- 'scripts/**'
- '.github/workflows/**'
pull_request:
branches: [ "main" ]

Expand All @@ -12,14 +17,18 @@ jobs:
strategy:
matrix:
include:
- functionality: text-to-image
- 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
- functionality: outpainting
dockerfile: serverless/outpainting/Dockerfile
- functionality: inpainting
- service: inpainting
context: serverless/inpainting
dockerfile: serverless/inpainting/Dockerfile
- functionality: image2video
dockerfile: serverless/image2video/Dockerfile
- service: outpainting
context: serverless/outpainting
dockerfile: serverless/outpainting/Dockerfile

steps:
- name: Checkout code
Expand All @@ -41,7 +50,7 @@ jobs:
context: .
file: ${{ matrix.dockerfile }}
push: true
tags: ${{secrets.DOCKER_USERNAME }}/picpilot_${{ matrix.functionality }}:latest
tags: ${{secrets.DOCKER_USERNAME }}/picpilot_${{ matrix.service }}:latest

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
Expand Down

0 comments on commit ce4282f

Please sign in to comment.