-
Notifications
You must be signed in to change notification settings - Fork 52
47 lines (40 loc) · 1.29 KB
/
ci-workflow.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Gazette Continuous Integration
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Full history.
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Login to GitHub container registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | \
docker login --username ${{ github.actor }} --password-stdin ghcr.io
- uses: actions/setup-go@v4
- run: sudo apt install -y protobuf-compiler librocksdb-dev libsqlite3-dev etcd-server
- run: echo "VERSION=$(git describe --dirty --tags)" >> "$GITHUB_ENV"
- run: make go-test-ci
- run: make go-build go-build-arm64
- uses: docker/build-push-action@v5
with:
context: .build
file: Dockerfile
target: broker
platforms: linux/amd64,linux/arm64
tags: "ghcr.io/gazette/broker:${{ env.VERSION }}"
push: true
- uses: docker/build-push-action@v5
with:
context: .build
file: Dockerfile
target: examples
platforms: linux/amd64
tags: "ghcr.io/gazette/examples:${{ env.VERSION }}"
push: true