Skip to content

Commit

Permalink
testing a pr push-to-registry
Browse files Browse the repository at this point in the history
  • Loading branch information
icehaunter committed Oct 9, 2024
1 parent 4c58e3d commit 7fa7aa0
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/benchmarking.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
pull_request:

defaults:
run:
working-directory: packages/sync-service

env:
PROJECT_ID: vaxine
REGISTRY: europe-docker.pkg.dev/vaxine/electric

jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.GCLOUD_REGISTRY_JSON_KEY }}
- uses: google-github-actions/setup-gcloud@v1
- name: Use gcloud CLI
run: "gcloud info"
- name: Docker auth
run: gcloud auth configure-docker europe-docker.pkg.dev --quiet
- name: Pull latest base image
run: docker pull electricsql/electric:canary
- name: Build image
run: docker build --push --cache-from=electricsql/electric:canary --tag ${{ env.REGISTRY }}/electric:${{ github.event.number }} .

0 comments on commit 7fa7aa0

Please sign in to comment.