diff --git a/.github/workflows/docker-capture.yml b/.github/workflows/docker-capture.yml index 5bc5100..4b4c1cd 100644 --- a/.github/workflows/docker-capture.yml +++ b/.github/workflows/docker-capture.yml @@ -1,4 +1,4 @@ -name: Build docker image +name: Build capture docker image on: workflow_dispatch: @@ -37,7 +37,7 @@ jobs: id: meta uses: docker/metadata-action@v4 with: - images: ghcr.io/${{ github.repository }} + images: ghcr.io/posthog/capture tags: | type=ref,event=pr type=ref,event=branch @@ -49,8 +49,8 @@ jobs: id: buildx uses: docker/setup-buildx-action@v2 - - name: Build and push - id: docker_build + - name: Build and push capture + id: docker_build_capture uses: docker/build-push-action@v4 with: context: ./ @@ -64,5 +64,5 @@ jobs: cache-to: type=gha,mode=max build-args: RUST_BACKTRACE=1 BIN=capture-server - - name: Image digest - run: echo ${{ steps.docker_build.outputs.digest }} + - name: Capture image digest + run: echo ${{ steps.docker_build_capture.outputs.digest }} diff --git a/.github/workflows/docker-hook-api.yml b/.github/workflows/docker-hook-api.yml index 2cafd62..0057d6c 100644 --- a/.github/workflows/docker-hook-api.yml +++ b/.github/workflows/docker-hook-api.yml @@ -62,7 +62,7 @@ jobs: platforms: linux/arm64 cache-from: type=gha cache-to: type=gha,mode=max - build-args: BIN=hook-api + build-args: RUST_BACKTRACE=1 BIN=hook-api - name: Hook-api image digest run: echo ${{ steps.docker_build_hook_api.outputs.digest }} diff --git a/.github/workflows/docker-hook-janitor.yml b/.github/workflows/docker-hook-janitor.yml index fc662bd..32903ba 100644 --- a/.github/workflows/docker-hook-janitor.yml +++ b/.github/workflows/docker-hook-janitor.yml @@ -62,7 +62,7 @@ jobs: platforms: linux/arm64 cache-from: type=gha cache-to: type=gha,mode=max - build-args: BIN=hook-janitor + build-args: RUST_BACKTRACE=1 BIN=hook-janitor - name: Hook-janitor image digest run: echo ${{ steps.docker_build_hook_janitor.outputs.digest }} diff --git a/.github/workflows/docker-hook-worker.yml b/.github/workflows/docker-hook-worker.yml index 77db4a7..05a1054 100644 --- a/.github/workflows/docker-hook-worker.yml +++ b/.github/workflows/docker-hook-worker.yml @@ -62,7 +62,7 @@ jobs: platforms: linux/arm64 cache-from: type=gha cache-to: type=gha,mode=max - build-args: BIN=hook-worker + build-args: RUST_BACKTRACE=1 BIN=hook-worker - name: Hook-worker image digest run: echo ${{ steps.docker_build_hook_worker.outputs.digest }} diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ea3be4e..7ee5eb8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -61,8 +61,8 @@ jobs: with: path: | ~/.cargo/registry - ~/.cargo/git - target + ~/.cargo/git + target key: ${ runner.os }-cargo-debug-${{ hashFiles('**/Cargo.lock') }} - name: Run cargo test