gpu/.gitea/workflows/Flow.yaml
2024-11-10 03:44:25 +08:00

69 lines
2.0 KiB
YAML

name: Build
on: [push]
jobs:
CUDA_Base:
runs-on: runner
steps:
- name: checkout code
uses: https://eoelab.org:1027/actions/checkout@v4
- name: CUDA_Base build
uses: https://eoelab.org:1027/actions/build-push-action@v6
with:
context: cuda/base
build-args: |
DEBIAN_MIRROR=mirrors.ustc.edu.cn
tags: eoelab.org:1027/${{ gitea.repository }}:cuda_base
CUDA_Runtime:
runs-on: runner
needs: CUDA_Base
steps:
- name: checkout code
uses: https://eoelab.org:1027/actions/checkout@v4
- name: CUDA_Runtime build
uses: https://eoelab.org:1027/actions/build-push-action@v6
with:
context: cuda/runtime
tags: eoelab.org:1027/${{ gitea.repository }}:cuda_runtime
CUDA_Devel:
runs-on: runner
needs: CUDA_Runtime
steps:
- name: checkout code
uses: https://eoelab.org:1027/actions/checkout@v4
- name: CUDA_Devel build
uses: https://eoelab.org:1027/actions/build-push-action@v6
with:
context: cuda/devel
tags: eoelab.org:1027/${{ gitea.repository }}:cuda_devel
ROCM:
runs-on: runner
steps:
- name: checkout code
uses: https://eoelab.org:1027/actions/checkout@v4
- name: ROCM build
uses: https://eoelab.org:1027/actions/build-push-action@v6
with:
context: rocm
build-args: |
UBUNTU_MIRROR=mirrors.ustc.edu.cn
http_proxy=http://192.168.2.2:7890
https_proxy=http://192.168.2.2:7890
tags: eoelab.org:1027/${{ gitea.repository }}:rocm
Push:
runs-on: runner
needs: [CUDA_Devel, ROCM]
steps:
- name: login gitea_registry
uses: https://eoelab.org:1027/actions/login-action@v3
with:
registry: eoelab.org:1027
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWD }}
- name: push images to gitea_registry
run: docker image push "eoelab.org:1027/${{ gitea.repository }}" --all-tags