name: Build Image
on:
push:
branches: [ main ]
env:
BASE_REPO: disco-diffusion-aiges-demo
jobs:
build-prep-image:
runs-on: ubuntu-latest
# 项目构建
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.IFLYOPENSOURCE }}
password: ${{ secrets.DOCKER_SECRET }}
- name: Build Docker Image -cuda-base
uses: docker/build-push-action@v2
with:
context: .
file: ./docker/prep/Dockerfile
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: ${{ secrets.IFLYOPENSOURCE }}/${{env.BASE_REPO}}:prep
build-main-image:
needs: build-prep-image
runs-on: ubuntu-latest
# 项目构建
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.IFLYOPENSOURCE }}
password: ${{ secrets.DOCKER_SECRET }}
- name: Build Docker Image -cuda-base
uses: docker/build-push-action@v2
with:
context: .
file: ./docker/main/Dockerfile
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: ${{ secrets.IFLYOPENSOURCE }}/${{env.BASE_REPO}}:main
Java程序员-张凯
- 粉丝: 1w+
- 资源: 7364
最新资源
- MATLAB实现绘制NURBS曲线程序源码
- 处理word文档,解析文档格式、图片、表达式、表格-doc、docx篇
- C#微信营销平台源码 微信营销后台管理系统源码数据库 文本存储源码类型 WebForm
- 技术资料分享65C02汇编指令集很好的技术资料.zip
- 课程作业《用51单片机实现的红外人体检测装置》+C语言项目源码+文档说明
- app自动化小白之appium环境安装
- 课程设计-哲学家就餐问题(并发算法问题)-解决策略:资源分级、最多允许四个哲学家同时拿筷子、服务员模式、尝试等待策略
- C#大型公司财务系统源码 企业财务管理系统源码数据库 SQL2008源码类型 WebForm
- MDK文件编译配套工程
- java项目,课程设计-ssm企业人事管理系统ssm.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈