修改: ai_cpython_wrapper #273
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: AIGes Docker Building | |
on: | |
push: | |
branches: [ grpc ] | |
# paths: | |
# - "docker/gpu/aiges/**" | |
pull_request: | |
branches: [ master ] | |
paths-ignore: | |
- '*.md' | |
- '*.yml' | |
- 'docs/**' | |
env: | |
CUDA_BASE_REPO: cuda-go-python-base | |
AIGES_REPO: aiges-gpu | |
jobs: | |
aiges-building: | |
strategy: | |
matrix: | |
cuda: [ 11.2,11.6,11.7] | |
python: [ 3.9.13 ] | |
golang: [1.18] | |
ubuntu_os: [1804] | |
runs-on: ubuntu-latest | |
# 项目构建 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
# - name: Configure AWS credentials | |
# uses: aws-actions/configure-aws-credentials@v1 | |
# with: | |
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
# aws-region: us-east-1 | |
# - name: Login to Amazon Public ECR | |
# uses: docker/login-action@v1 | |
# with: | |
# registry: public.ecr.aws | |
# username: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
# password: ${{ secrets.AWS_ACCESS_KEY_KEY }} | |
# env: | |
# AWS_REGION: us-east-1 | |
- name: Setup Python And Generate Dockerfile | |
shell: bash | |
run: | | |
sudo apt install -y python3-pip | |
sudo pip install jinja2 plumbum | |
ls | |
pwd | |
python docker/build.py generate --all --use_github | |
python docker/build.py generate --action build-bussiness --use_github | |
# Set up credentials used by AWS CLI | |
# - name: CreateRepo | |
# shell: bash | |
# env: | |
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
# run: | | |
# aws ecr-public create-repository --repository-name $AIGES_REPO || true | |
- name: Log in to Docker Hub | |
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | |
with: | |
username: ${{ secrets.IFLYOPENSOURCE }} | |
password: ${{ secrets.DOCKER_SECRET }} | |
- name: Build OpenSource Docker Image For AIges | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
file: ./dist/aiges/ubuntu${{ matrix.ubuntu_os }}/cuda-${{ matrix.cuda }}/Dockerfile | |
builder: ${{ steps.buildx.outputs.name }} | |
push: true | |
tags: ${{ secrets.IFLYOPENSOURCE }}/${{env.AIGES_REPO}}:${{ matrix.cuda }}-${{ matrix.golang }}-${{ matrix.python }}-ubuntu${{ matrix.ubuntu_os }}-dev | |
- name: Build Bussiness Docker Image For AIges | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
file: ./dist/aiges/bussiness/ubuntu${{ matrix.ubuntu_os }}/cuda-${{ matrix.cuda }}/Dockerfile | |
builder: ${{ steps.buildx.outputs.name }} | |
push: true | |
tags: ${{ secrets.IFLYOPENSOURCE }}/${{env.AIGES_REPO}}:${{ matrix.cuda }}-${{ matrix.golang }}-${{ matrix.python }}-ubuntu${{ matrix.ubuntu_os }}-bussiness-dev |