diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b5540a..ee111d9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -879,6 +879,50 @@ jobs: delimiter: ${{ matrix.delimiter }} target: ${{ env.target }} + # This docker image is used to run manticore-executor on Windows + deploy-docker: + name: Deploy docker + runs-on: ubuntu-22.04 + needs: + - pack + - build-artifact + - deploy + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Download amd64 artifact + uses: manticoresoftware/download_artifact_with_retries@main + with: + name: artifact-ubuntu-22.04-amd64 + path: . + - name: Download arm64 artifact + uses: manticoresoftware/download_artifact_with_retries@main + with: + name: artifact-ubuntu-22.04-arm64 + path: . + - name: Extract binaries + run: | + for arch in amd64 arm64; do + tar -xzf *-linux-${arch}.tar.gz + cp *-linux-${arch}/${{ env.APP_NAME }} manticore-executor-${arch} + chmod +x manticore-executor-${arch} + done + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USER }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Build and push docker image + uses: docker/build-push-action@v3 + with: + context: . + file: ./Dockerfile-dist + platforms: linux/amd64,linux/arm64 + push: true + tags: ${{ env.DOCKER_TAG }}:${{ needs.pack.outputs.version }} + update-manticoresearch-deps: needs: - pack @@ -890,4 +934,4 @@ jobs: with: name: executor version: "${{ needs.pack.outputs.version_full }}" - token: ${{ secrets.PR_TOKEN }} + token: ${{ secrets.PR_TOKEN }} \ No newline at end of file diff --git a/Dockerfile-dist b/Dockerfile-dist new file mode 100644 index 0000000..9abeb4a --- /dev/null +++ b/Dockerfile-dist @@ -0,0 +1,4 @@ +FROM ubuntu:22.04 +ARG TARGETARCH +COPY manticore-executor-${TARGETARCH} /usr/bin/manticore-executor +ENTRYPOINT ["/usr/bin/manticore-executor"] \ No newline at end of file