From 27b6ead7f1b8438654ed7c3d90c8018dd577a7a5 Mon Sep 17 00:00:00 2001 From: cedb Date: Wed, 2 Nov 2022 17:04:48 -0400 Subject: [PATCH] Add initial version of docker build --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ Dockerfile | 6 ++++++ 2 files changed, 34 insertions(+) create mode 100644 Dockerfile diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a1fd42a..2f7866f2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,3 +48,31 @@ jobs: with: name: signal-cli-native path: build/native/nativeCompile/signal-cli + + build-docker: + + runs-on: ubuntu-latest + needs: build + steps: + - + name: Checkout + uses: actions/checkout@v3 + - + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v3 + with: + context: . + push: true + tags: ${{ secrets.DOCKERHUB_USERNAME }}/signal-cli:latest \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..03dd6bda --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM eclipse-temurin:17 + +ADD build/distributions/signal-*.tar /tmp +RUN mv /tmp/signal-cli-* /opt/signal-cli + +ENTRYPOINT ["/opt/signal-cli/bin/signal-cli"]