Skip to content

Commit

Permalink
Build and push docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhichang committed Dec 28, 2023
1 parent 1dea05d commit 6e57702
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,24 @@ jobs:
cmake-build-release/infinity-*.deb
cmake-build-release/infinity-*.rpm
cmake-build-release/infinity-*.tar.gz
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

# https://github.com/marketplace/actions/docker-login
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: infiniflow
password: ${{ secrets.DOCKERHUB_TOKEN }}

# https://github.com/marketplace/actions/build-and-push-docker-images
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: infiniflow/infinity:${{ env.RELEASE_TAG }}
file: scripts/Dockerfile
5 changes: 5 additions & 0 deletions scripts/Dockerfile_infinity
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM debian:stable-slim

COPY cmake-build-release/src/infinity /usr/bin

ENTRYPOINT [ "/usr/bin/infinity" ]

0 comments on commit 6e57702

Please sign in to comment.