Skip to content

doc(CHANGELOG.md): add v2.0.4 #15

doc(CHANGELOG.md): add v2.0.4

doc(CHANGELOG.md): add v2.0.4 #15

Workflow file for this run

name: gpu
on:
push:
branches:
- 'master'
tags:
- 'v*.*.*'
pull_request:
branches:
- 'master'
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: nschloe/action-cached-lfs-checkout@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Docker meta
id: meta_gpu_base
uses: docker/metadata-action@v4
with:
images: |
tencentailab/hok_env
flavor: |
prefix=gpu_base_
tags: |
type=semver,pattern={{raw}}
type=sha,prefix=gpu_base_
-
name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta_gpu_base.outputs.tags }}
labels: ${{ steps.meta_gpu_base.outputs.labels }}
file: dockerfile/dockerfile.base.torch
target: gpu
cache-from: type=registry,ref=tencentailab/hok_env:buildcache_gpu_base
cache-to: type=registry,ref=tencentailab/hok_env:buildcache_gpu_base,mode=max
build-args: |
BASE_IMAGE=tencentailab/hok_env:base_common_py38_base_v2.0.2
-
name: Docker meta
id: meta_gpu
uses: docker/metadata-action@v4
with:
images: |
tencentailab/hok_env
flavor: |
prefix=gpu_
tags: |
type=semver,pattern={{raw}}
type=sha,prefix=gpu_
-
name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta_gpu.outputs.tags }}
labels: ${{ steps.meta_gpu.outputs.labels }}
file: dockerfile/dockerfile.dev
cache-from: type=registry,ref=tencentailab/hok_env:buildcache_gpu
cache-to: type=registry,ref=tencentailab/hok_env:buildcache_gpu,mode=max
target: battle
build-args: |
BASE_IMAGE=tencentailab/hok_env:gpu_base_v2.0.2