Skip to content

Commit

Permalink
figuring out CI
Browse files Browse the repository at this point in the history
  • Loading branch information
icehaunter committed Oct 9, 2024
1 parent 80134c1 commit 3f7a565
Showing 1 changed file with 36 additions and 17 deletions.
53 changes: 36 additions & 17 deletions .github/workflows/benchmarking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,45 @@ jobs:
docker pull ${{ env.REGISTRY }}/electric:pr-${{ github.event.number }}-runner-base || true
- name: Build base images
run: >
docker build
--push
--cache-from=${{ env.REGISTRY }}/electric:canary-builder
--cache-from=${{ env.REGISTRY }}/electric:pr-${{ github.event.number }}-builder
--tag ${{ env.REGISTRY }}/electric:pr-${{ github.event.number }}-builder
--target builder
docker build \
--push \
--cache-from ${{ env.REGISTRY }}/electric:canary-builder \
--cache-from ${{ env.REGISTRY }}/electric:pr-${{ github.event.number }}-builder \
--tag ${{ env.REGISTRY }}/electric:pr-${{ github.event.number }}-builder \
--target builder \
.
docker build
--push
--cache-from=${{ env.REGISTRY }}/electric:canary-runner-base
--cache-from=${{ env.REGISTRY }}/electric:pr-${{ github.event.number }}-runner-base
--tag ${{ env.REGISTRY }}/electric:pr-${{ github.event.number }}-runner-base
--target runner_setup
docker build \
--push \
--cache-from ${{ env.REGISTRY }}/electric:canary-runner-base \
--cache-from ${{ env.REGISTRY }}/electric:pr-${{ github.event.number }}-runner-base \
--tag ${{ env.REGISTRY }}/electric:pr-${{ github.event.number }}-runner-base \
--target runner_setup \
.
- name: Build actual image
run: >
docker build
--push
--cache-from=${{ env.REGISTRY }}/electric:pr-${{ github.event.number }}-builder
--cache-from=${{ env.REGISTRY }}/electric:pr-${{ github.event.number }}-runner-base
--tag ${{ env.REGISTRY }}/electric:pr-${{ github.event.number }}-${{ github.sha }}
docker build \
--push \
--cache-from=${{ env.REGISTRY }}/electric:pr-${{ github.event.number }}-builder \
--cache-from=${{ env.REGISTRY }}/electric:pr-${{ github.event.number }}-runner-base \
--tag ${{ env.REGISTRY }}/electric:pr-${{ github.event.number }}-${{ github.sha }} \
.
# - name: Trigger a benchmark start
# run: |
# curl -X POST 'http://localhost:4000/api/benchmarks/write_fanout/runs' \
# -H 'Content-Type: application/json' \
# -d '{
# "benchmark_run": {
# "spec_values": {
# "electric_image": ["electricsql/electric:'"$ELECTRIC_VERSION"'"],
# "postgres_image": ["postgres:15-alpine"],
# "row_count": [500],
# "concurrent": [4,36,68,100,132,164,200],
# "tx_row_count": [10,410,810,1210,1610,1910]
# },
# "machine_request": {
# "vcpu": 4,
# "mem_gb": 8
# }
# }
# }'

0 comments on commit 3f7a565

Please sign in to comment.