Skip to content

Commit

Permalink
docker-image构建并打包
Browse files Browse the repository at this point in the history
  • Loading branch information
KOUymA authored Sep 14, 2024
1 parent 13fa3d1 commit ef10a1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
run: docker build . --file Dockerfile --tag my-image-name && docker save -o my-image-name.tar my-image-name

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: hanlp-api-tar
name: my-image-name
path: x86-64-images.tar.gz
retention-days: 1 # 将保留天数设置为 1 天 最多可设置90天

0 comments on commit ef10a1f

Please sign in to comment.