123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- name: ci
- on:
- push:
- branches:
- - 'master'
- jobs:
- docker:
- runs-on: ubuntu-latest
- environment: main
- steps:
- -
- name: Checkout
- uses: actions/checkout@v4
- with:
- submodules: recursive
- -
- name: Set up QEMU
- uses: docker/setup-qemu-action@v3
- -
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v2
- -
- name: Login to DockerHub
- uses: docker/login-action@v1
- with:
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_TOKEN }}
- -
- name: Build and push
- uses: docker/build-push-action@v5
- with:
- context: .
- platforms: linux/amd64,linux/arm64/v8
- push: true
- tags: ftcaplan/matrix-stt-bot:latest
- -
- name: Build and push
- uses: docker/build-push-action@v5
- with:
- context: .
- platforms: linux/amd64,linux/arm64/v8
- push: true
- tags: ftcaplan/matrix-stt-bot:tiny
- build-args: |
- "PRELOAD_MODEL=tiny"
- -
- name: Build and push
- uses: docker/build-push-action@v5
- with:
- context: .
- platforms: linux/amd64,linux/arm64/v8
- push: true
- tags: ftcaplan/matrix-stt-bot:tiny-q5_1
- build-args: |
- "PRELOAD_MODEL=tiny-q5_1"
- -
- name: Build and push
- uses: docker/build-push-action@v5
- with:
- context: .
- platforms: linux/amd64,linux/arm64/v8
- push: true
- tags: ftcaplan/matrix-stt-bot:base
- build-args: |
- "PRELOAD_MODEL=base"
- -
- name: Build and push
- uses: docker/build-push-action@v5
- with:
- context: .
- platforms: linux/amd64,linux/arm64/v8
- push: true
- tags: ftcaplan/matrix-stt-bot:base-q5_1
- build-args: |
- "PRELOAD_MODEL=base-q5_1"
- -
- name: Build and push
- uses: docker/build-push-action@v5
- with:
- context: .
- platforms: linux/amd64,linux/arm64/v8
- push: true
- tags: ftcaplan/matrix-stt-bot:small
- build-args: |
- "PRELOAD_MODEL=small"
- -
- name: Build and push
- uses: docker/build-push-action@v5
- with:
- context: .
- platforms: linux/amd64,linux/arm64/v8
- push: true
- tags: ftcaplan/matrix-stt-bot:small-q5_1
- build-args: |
- "PRELOAD_MODEL=small-q5_1"
- -
- name: Build and push
- uses: docker/build-push-action@v5
- with:
- context: .
- platforms: linux/amd64,linux/arm64/v8
- push: true
- tags: ftcaplan/matrix-stt-bot:medium-q5_0
- build-args: |
- "PRELOAD_MODEL=medium-q5_0"
- -
- name: Build and push
- uses: docker/build-push-action@v5
- with:
- context: .
- platforms: linux/amd64,linux/arm64/v8
- push: true
- tags: ftcaplan/matrix-stt-bot:large-q5_0
- build-args: |
- "PRELOAD_MODEL=large-q5_0"
|