-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 935 Bytes
/
ubuntu.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build Docker images (Ubuntu)
permissions:
packages: write
on:
pull_request:
paths:
- 'cann/Dockerfile.ubuntu'
- 'llm/**'
- 'pytorch/**'
branches:
- main
push:
paths:
- 'cann/Dockerfile.ubuntu'
- 'llm/**'
- 'pytorch/**'
branches:
- main
jobs:
build-cann:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
docker build -t ascendai/cann:ubuntu2004 -f ./cann/Dockerfile.ubuntu .
docker build -t ascendai/pytorch:ubuntu2004 -f ./pytorch/Dockerfile .
cd llm
docker build -t ascendai/llm:ubuntu2004 -f ./Dockerfile .
- name: Push
if: github.event_name == 'push'
run: |
docker push ascendai/cann:ubuntu2004
docker push ascendai/pytorch:ubuntu2004
docker push ascendai/llm:ubuntu2004