test matrix

This commit is contained in:
daozhao chen 2023-04-27 06:53:20 +00:00
parent cf800f3f42
commit a3a813b208
2 changed files with 17 additions and 13 deletions

View file

@ -14,22 +14,25 @@ jobs:
build: build:
strategy: strategy:
matrix: matrix:
profile: profile: [auto , sygil , invoke ,comfy , download]
dockerTag: [sd-auto:51,sd-sygil:16, sd-invoke:27, sd-comfy:1 , sd-download:51]
dockerHubTag: [sd-auto , sd-sygil , sd-invoke ,sd-comfy , sd-download]
# - auto # - auto
# - sygil # - sygil
# - invoke # - invoke
# - comfy # - comfy
- download # - download
runs-on: ubuntu-latest
name: ${{ matrix.profile }} # runs-on: ubuntu-latest
steps: # name: ${{ matrix.profile }}
# - uses: actions/checkout@v3 # steps:
# - run: docker compose --profile ${{ matrix.profile }} build --progress plain # # - uses: actions/checkout@v3
- name: Login to Docker Hub # # - run: docker compose --profile ${{ matrix.profile }} build --progress plain
uses: docker/login-action@v2 # - name: Login to Docker Hub
with: # uses: docker/login-action@v2
username: ${{secrets.DOCKERHUB_USERNAME}} # with:
password: ${{ secrets.DOCKERHUB_TOKEN }} # username: ${{secrets.DOCKERHUB_USERNAME}}
- run: echo "docker build is ok." # password: ${{ secrets.DOCKERHUB_TOKEN }}
- run: echo "docker build is ok." ${{matrix.profile}} ${{matrix.dockerTag}} ${{matrix.dockerHubTag}}

View file

@ -21,6 +21,7 @@ services:
download: download:
build: ./services/download/ build: ./services/download/
profiles: ["download"] profiles: ["download"]
image: sd-download:51
volumes: volumes:
- *v1 - *v1