分离CPU和GPU计算任务成两个镜像 Separate GPU-accelerated steps to GPU the workload image. #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pytvzhen-web Docker PR Build | |
on: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: self-hosted | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Build EasyVideoTrans service | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
push: false | |
tags: hanfa/easyvideotrans:${{github.event.pull_request.number}} | |
- name: Build EasyVideoTrans workloads | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
file: Dockerfile-gpu-workload | |
push: false | |
tags: hanfa/easyvideotrans-workloads:${{github.event.pull_request.number}} |