Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
cd85b78f
Unverified
Commit
cd85b78f
authored
Mar 05, 2025
by
saienduri
Committed by
GitHub
Mar 05, 2025
Browse files
Create release-docker-amd-nightly.yml (#4105)
parent
0aaccbbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
0 deletions
+67
-0
.github/workflows/release-docker-amd-nightly.yml
.github/workflows/release-docker-amd-nightly.yml
+67
-0
No files found.
.github/workflows/release-docker-amd-nightly.yml
0 → 100644
View file @
cd85b78f
name
:
Release Docker Images Nightly (AMD)
on
:
workflow_dispatch
:
pull_request
:
schedule
:
-
cron
:
'
0
13
*
*
*'
concurrency
:
# A PR number if a pull request and otherwise the commit hash. This cancels
# queued and in-progress runs for the same PR (presubmit) or commit
# (postsubmit). The workflow name is prepended to avoid conflicts between
# different workflows.
group
:
${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress
:
true
jobs
:
publish
:
if
:
github.repository == 'sgl-project/sglang'
runs-on
:
amd-docker
environment
:
'
prod'
strategy
:
matrix
:
rocm_version
:
[
'
6.3.0'
]
build_type
:
[
'
all'
,
'
srt'
]
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v3
-
name
:
"
Set
Date"
run
:
|
echo "DATE=$(date +%Y%m%d)" >> $GITHUB_ENV
-
name
:
Free disk space
uses
:
jlumbroso/free-disk-space@main
with
:
tool-cache
:
false
docker-images
:
false
android
:
true
dotnet
:
true
haskell
:
true
large-packages
:
true
swap-storage
:
false
-
name
:
Login to Docker Hub
uses
:
docker/login-action@v2
with
:
username
:
${{ secrets.DOCKERHUB_AMD_USERNAME }}
password
:
${{ secrets.DOCKERHUB_AMD_TOKEN }}
-
name
:
Build and Push
run
:
|
if [ "${{ matrix.build_type }}" = "all" ]; then
tag_suffix=""
elif [ "${{ matrix.build_type }}" = "srt" ]; then
tag_suffix="-srt"
else
echo "Unsupported build type"
exit 1
fi
docker build . -f docker/Dockerfile.rocm --build-arg BUILD_TYPE=${{ matrix.build_type }} -t rocm/sgl-dev:${{ env.DATE }} --no-cache
docker push rocm/sgl-dev:${{ env.DATE }}
-
name
:
"
Remove
docker
image"
run
:
|
sudo rm -rf /var/lib/docker
sudo systemctl restart docker
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment