generated from runpod-workers/worker-template
-
Notifications
You must be signed in to change notification settings - Fork 20
65 lines (53 loc) · 1.96 KB
/
CD-docker_dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Docker Image
on:
push:
branches:
- "main"
jobs:
docker:
strategy:
matrix:
include:
- model_name: stable-diffusion-v1-5
model_tag: runwayml/stable-diffusion-v1-5
model_url: https://huggingface.co/runwayml/stable-diffusion-v1-5
- model_name: anything-v3
model_tag: Linaqruf/anything-v3.0
model_url: https://huggingface.co/Linaqruf/anything-v3.0
- model_name: anything-v4
model_tag: stablediffusionapi/anything-v45
model_url: https://huggingface.co/stablediffusionapi/anything-v45
- model_name: anything-v5
model_tag: stablediffusionapi/anything-v5
model_url: https://huggingface.co/stablediffusionapi/anything-v5
- model_name: openjourney
model_tag: prompthero/openjourney
model_url: https://huggingface.co/prompthero/openjourney
- model_name: realistic-vision
model_tag: SG161222/Realistic_Vision_V1.4
model_url: https://huggingface.co/SG161222/Realistic_Vision_V1.4
runs-on: ubuntu-latest
steps:
- name: Clear Space
run: |
rm -rf /usr/share/dotnet
rm -rf /opt/ghc
rm -rf "/usr/local/share/boost"
rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
build-args: |
MODEL_URL=${{ matrix.model_url }}
MODEL_TAG=${{ matrix.model_tag }}
push: true
tags: ${{ vars.DOCKERHUB_REPO }}/${{ secrets.DOCKERHUB_IMG }}:${{ matrix.model_name }}-dev