-
Notifications
You must be signed in to change notification settings - Fork 660
[ci] add nightly docker build workflow #4406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
zhulinJulia24
wants to merge
12
commits into
InternLM:main
Choose a base branch
from
zhulinJulia24:async_docker
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
fd88f7e
update
zhulinJulia24 fcbf7de
update
zhulinJulia24 bb4debe
update
zhulinJulia24 4a0708d
Merge branch 'InternLM:main' into async_docker
zhulinJulia24 0d81eff
Update docker-nightly.yml
zhulinJulia24 3f84e4d
Update docker-nightly.yml
zhulinJulia24 d896958
update
zhulinJulia24 c6d381e
update
zhulinJulia24 0a38b79
update
zhulinJulia24 9db6b19
Merge branch 'InternLM:main' into async_docker
zhulinJulia24 652caa1
Apply suggestions from code review
zhulinJulia24 22351ac
update
zhulinJulia24 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| name: publish-docker-nightly | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| repo_ref: | ||
| required: false | ||
| description: 'Set branch or tag or commit id. Default is "main"' | ||
| type: string | ||
| default: 'main' | ||
| schedule: | ||
| - cron: '00 8 * * 0-4' | ||
|
|
||
| env: | ||
| TAG: "openmmlab/lmdeploy:nightly-cu12.8" | ||
|
|
||
| jobs: | ||
| publish_docker_image: | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| CUDA_VERSION: "cu12.8" | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| ref: ${{ github.event.inputs.repo_ref || 'main' }} | ||
| - name: Free disk space | ||
| uses: jlumbroso/free-disk-space@main | ||
| with: | ||
| # This might remove tools that are actually needed, if set to "true" but frees about 6 GB | ||
| tool-cache: false | ||
| docker-images: false | ||
| # All of these default to true, but feel free to set to "false" if necessary for your workflow | ||
| android: true | ||
| dotnet: true | ||
| haskell: true | ||
| large-packages: true | ||
| swap-storage: false | ||
| - name: Get docker info | ||
| run: | | ||
| docker info | ||
| # remove http extraheader (tolerate missing key) | ||
| git config --local --unset "http.https://github.com/.extraheader" || true | ||
| - name: Login to Docker Hub | ||
| uses: docker/login-action@v2 | ||
| with: | ||
| username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
| - name: Build and push Docker image | ||
| run: | | ||
| echo ${{ env.TAG }} | ||
| docker build . -f docker/Dockerfile -t ${{ env.TAG }} --build-arg CUDA_VERSION=${{ env.CUDA_VERSION }} | ||
| docker push ${{ env.TAG }} | ||
|
|
||
| publish_inner_docker_image: | ||
| runs-on: image-sync-inner | ||
| needs: publish_docker_image | ||
| env: | ||
| INNER_TAG: "registry.h.pjlab.org.cn/ailab-puyu-puyu_gpu/lmdeploy:nightly-cu12.8" | ||
| steps: | ||
| - name: Pull and push to inner | ||
| run: | | ||
| docker pull ${{ env.TAG }} | ||
| docker login registry.h.pjlab.org.cn -p ${{ secrets.CLUSTER_DOCKERHUB_TOKEN }} -u ${{ secrets.CLUSTER_DOCKERHUB_USERNAME }} | ||
| docker tag ${{ env.TAG }} ${{ env.INNER_TAG }} | ||
| docker push ${{ env.INNER_TAG }} | ||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.