123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- name: ci
- on:
- push:
- branches:
- - 'master'
- jobs:
- docker:
- runs-on: ubuntu-latest
- environment: main
- steps:
- -
- name: Checkout
- uses: actions/checkout@v3
- with:
- submodules: recursive
- -
- name: Set up QEMU
- uses: docker/setup-qemu-action@v2
- -
- 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@v2
- with:
- context: .
- platforms: linux/amd64,linux/arm64/v7,linux/arm64/v8
- push: true
- tags: ftcaplan/matrix-stt-bot:latest
- -
- name: Build and push
- uses: docker/build-push-action@v2
- with:
- context: .
- platforms: linux/amd64,linux/arm64/v7,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@v2
- with:
- context: .
- platforms: linux/amd64,linux/arm64/v7,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@v2
- with:
- context: .
- platforms: linux/amd64,linux/arm64/v7,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@v2
- with:
- context: .
- platforms: linux/amd64,linux/arm64/v7,linux/arm64/v8
- push: true
- tags: ftcaplan/matrix-stt-bot:medium
- build-args: |
- "PRELOAD_MODEL=medium"
- -
- name: Build and push
- uses: docker/build-push-action@v2
- with:
- context: .
- platforms: linux/amd64,linux/arm64/v7,linux/arm64/v8
- push: true
- tags: ftcaplan/matrix-stt-bot:large
- build-args: |
- "PRELOAD_MODEL=large"
|