Skip to content

Commit c8660f1

Browse files
committed
Add docker
1 parent cf3032e commit c8660f1

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,26 @@ jobs:
6464
generate_release_notes: true
6565
prerelease: ${{ fromJSON(needs.set-version.outputs.prerelease) }}
6666
make_latest: ${{ fromJSON(needs.set-version.outputs.latest) }}
67+
68+
docker:
69+
needs: [set-version, build]
70+
runs-on: ubuntu-latest
71+
steps:
72+
- uses: actions/download-artifact@v8
73+
with:
74+
name: dstack-sshproxy
75+
path: build
76+
- run: |
77+
mv dstack-sshproxy-* dstack-sshproxy
78+
working-directory: build
79+
- name: Set up QEMU
80+
uses: docker/setup-qemu-action@v4
81+
- name: Set up Docker Buildx
82+
uses: docker/setup-buildx-action@v4
83+
- name: Build and push
84+
uses: docker/build-push-action@v7
85+
with:
86+
push: false
87+
tags: |
88+
dstackai/sshproxy:${{ needs.set-version.outputs.version }}
89+
${{ fromJSON(needs.set-version.outputs.latest) && dstackai/sshproxy:latest || null }}

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM gcr.io/distroless/static-debian13
2+
3+
COPY build/dstack-sshproxy /dstack-sshproxy
4+
5+
ENTRYPOINT ["/dstack-sshproxy"]

0 commit comments

Comments
 (0)