Skip to content

Commit

Permalink
[Feature][largemodel]: add largemodel dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
anzhe.su committed Oct 17, 2024
1 parent cfbfc9c commit 8ca009d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/docker_build_largemodel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@ on:
push:
branches: [ "main" ]
paths: [
"base/cuda/**",
"largemodel/**",
".github/workflows/docker_build_largemodel.yml",
]
pull_request:
branches: [ "main" ]
types: [opened, synchronize, closed]
paths: [
"base/cuda/**",
"largemodel/**",
".github/workflows/docker_build_largemodel.yml",
]

env:
IMAGE_NAME: yolo_world
VERSION: 0.1
FOLDER: largemodel
DOCKERFILE: Dockerfile

jobs:
Expand All @@ -34,7 +35,7 @@ jobs:
- name: Delete huge unnecessary tools folder
run: rm -rf /opt/hostedtoolcache
- name: Build Docker images
run: docker build -f base/cuda/${{ env.DOCKERFILE }} -t saz0568/zelos-image:${{ env.IMAGE_NAME }}-${{ env.VERSION }} .
run: docker build -f ${{ env.FOLDER }}/${{ env.DOCKERFILE }} -t saz0568/zelos-image:${{ env.IMAGE_NAME }}-${{ env.VERSION }} .
- name: Push Docker images
run: docker push saz0568/zelos-image:${{ env.IMAGE_NAME }}-${{ env.VERSION }}
publish:
Expand All @@ -54,6 +55,6 @@ jobs:
- name: Log in to zelos Harbor
run: echo "${{ secrets.HARBOR_PASSWORD }}" | docker login harbor.zelostech.com.cn:5443 --username=${{ secrets.HARBOR_USERNAME }} --password-stdin
- name: Tag Harbor images
run: docker tag saz0568/zelos-image:${{ env.IMAGE_NAME }}-${{ env.VERSION }} harbor.zelostech.com.cn:5443/devops/jupyter/${{ env.IMAGE_NAME }}:${{ env.VERSION }}
run: docker tag saz0568/zelos-image:${{ env.IMAGE_NAME }}-${{ env.VERSION }} harbor.zelostech.com.cn:5443/devops/${{ env.IMAGE_NAME }}:${{ env.VERSION }}
- name: Push Harbor images
run: docker push harbor.zelostech.com.cn:5443/devops/jupyter/${{ env.IMAGE_NAME }}:${{ env.VERSION }}
run: docker push harbor.zelostech.com.cn:5443/devops/${{ env.IMAGE_NAME }}:${{ env.VERSION }}

0 comments on commit 8ca009d

Please sign in to comment.