Repository navigation
70 lines (62 loc) · 2.06 KB
/
Copy pathdeepseek-harness-release.yml
File metadata and controls
70 lines (62 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Build DeepSeek Harness Image
run-name: Build DeepSeek Harness Image ${{ github.event.inputs.dshVersion }}
on:
workflow_dispatch:
inputs:
dshVersion:
description: "@deepseek-ai/dsh npm version"
default: "0.2.1-rc.5"
required: true
platforms:
description: "Platforms"
default: "linux/amd64,linux/arm64"
required: true
pushLatest:
description: "Push latest tag"
default: "true"
required: true
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
IMAGE_NAME: 1panel/deepseek-harness
jobs:
docker:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Login to Docker Hub
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push image
uses: docker/build-push-action@v7
with:
context: .
file: deepseek-harness/Dockerfile
platforms: ${{ github.event.inputs.platforms }}
push: true
build-args: |
DSH_VERSION=${{ github.event.inputs.dshVersion }}
tags: |
${{ env.IMAGE_NAME }}:${{ github.event.inputs.dshVersion }}
cache-from: type=gha,scope=deepseek-harness
cache-to: type=gha,mode=max,scope=deepseek-harness
- name: Push latest tag
if: ${{ github.event.inputs.pushLatest == 'true' }}
uses: docker/build-push-action@v7
with:
context: .
file: deepseek-harness/Dockerfile
platforms: ${{ github.event.inputs.platforms }}
push: true
build-args: |
DSH_VERSION=${{ github.event.inputs.dshVersion }}
tags: |
${{ env.IMAGE_NAME }}:latest
cache-from: type=gha,scope=deepseek-harness
cache-to: type=gha,mode=max,scope=deepseek-harness