-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c58e3d
commit 7fa7aa0
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
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
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 }} . |