Skip to content

Commit

Permalink
Plugins: Properly versioning plugin docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
kvalev committed May 29, 2023
1 parent f6b4702 commit 0cdedb5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/plugins-docker.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Build plugin docker images

on:
pull_request:
paths:
Expand All @@ -8,17 +10,19 @@ jobs:
strategy:
fail-fast: false
matrix:
plugins:
- realesrgan
- yolo8
plugin:
- name: realesrgan
version: 0.3.0
- name: yolo8
version: 8.0.110

runs-on: ubuntu-latest
steps:
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
changed: 'ext/${{ matrix.plugins }}/**'
changed: 'ext/${{ matrix.plugin.name }}/**'
- name: Checkout
if: steps.changes.outputs.changed == 'true'
Expand All @@ -35,6 +39,6 @@ jobs:
if: steps.changes.outputs.changed == 'true'
uses: docker/build-push-action@v2
with:
context: ext/realesrgan
tags: kvalev/realesrgan:0.3.0
context: ext/${{ matrix.plugin.name }}
tags: kvalev/${{ matrix.plugin.name }}:${{ matrix.plugin.version }}
push: true
4 changes: 2 additions & 2 deletions ext/yolo8/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Flask
ultralytics
ultralytics==8.0.110
flask==2.3.2

0 comments on commit 0cdedb5

Please sign in to comment.