Query exception should be catched at HServer level (#1368) #986
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish latest | |
on: | |
push: | |
branches: [master, main] | |
env: | |
IMAGE_NAME: "hstreamdb/hstream" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- builder_image: "hstreamdb/haskell:9.2" | |
ld_image: "hstreamdb/logdevice" | |
tag: "latest" | |
- builder_image: "hstreamdb/haskell:rqlite_9.2" | |
ld_image: "hstreamdb/logdevice:rqlite" | |
tag: "rqlite" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: "recursive" | |
- name: Docker build | |
run: | | |
docker build . -f docker/Dockerfile \ | |
--build-arg BUILDER_IMAGE=${{ matrix.builder_image }} \ | |
--build-arg LD_IMAGE=${{ matrix.ld_image }} \ | |
-t ${IMAGE_NAME}:${{ matrix.tag }} | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Push image to dockerhub | |
run: docker push ${IMAGE_NAME}:${{ matrix.tag }} | |
trigger: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
# https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#create-a-repository-dispatch-event | |
- name: Trigger testing ci | |
run: | | |
URL=https://api.github.com/repos/hstreamdb/integration-tests/dispatches | |
curl \ | |
-X POST \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
$URL \ | |
--data "{\"event_type\": \"image_updated\", \"client_payload\": { \"tag\": \"latest\", \"commit_sha\": \"$GITHUB_SHA\" }}" | |
- name: Trigger jepsen test ci | |
run: | | |
URL=https://api.github.com/repos/hstreamdb/jepsen.hstream/dispatches | |
curl \ | |
-X POST \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
$URL \ | |
--data "{\"event_type\": \"image_updated\", \"client_payload\": { \"tag\": \"latest\", \"commit_sha\": \"$GITHUB_SHA\" }}" | |
- name: Trigger bench ci | |
run: | | |
URL=https://api.github.com/repos/hstreamdb/bench/dispatches | |
curl \ | |
-X POST \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
$URL \ | |
--data "{\"event_type\": \"image_updated\", \"client_payload\": { \"tag\": \"latest\", \"commit_sha\": \"$GITHUB_SHA\" }}" | |
- name: Trigger docs ci | |
run: | | |
URL=https://api.github.com/repos/hstreamdb/docs/dispatches | |
curl \ | |
-X POST \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
$URL \ | |
--data "{\"event_type\": \"image_updated\", \"client_payload\": { \"tag\": \"latest\", \"commit_sha\": \"$GITHUB_SHA\" }}" |