diff --git a/.github/workflows/docker_build_largemodel.yml b/.github/workflows/docker_build_largemodel.yml index 31be15e..3922387 100644 --- a/.github/workflows/docker_build_largemodel.yml +++ b/.github/workflows/docker_build_largemodel.yml @@ -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: @@ -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: @@ -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 }}