mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-18 13:34:20 +00:00
40 lines
896 B
YAML
40 lines
896 B
YAML
name: Build docker image
|
|
on:
|
|
push:
|
|
branches:
|
|
- docker
|
|
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: build_docker-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-doc:
|
|
name: build docker image
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
steps:
|
|
- name: Check out the repo
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
- name: Log in to Docker Hub
|
|
uses: docker/login-action@v2
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v4
|
|
with:
|
|
file: ./docker/torch1.13.0-cuda11.6-cudnn8.Dockerfile
|
|
push: true
|
|
tags: k2fsa/icefall:torch1.13.0-cuda11.6
|