Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ jobs:
push: ${{ env.IS_PUBLISH == 'true' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
BUILD_VERSION=${{ github.ref_name }}-${{ github.sha }}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool will this pick up tags?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes sir

CleanShot 2026-03-14 at 21 48 16@2x

# arm64 via QEMU is slow, so only build it on main branch or tags (not workflow_dispatch)
platforms: ${{ env.IS_ARM64_BUILD == 'true' && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
cache-from: type=local,src=/tmp/.buildx-cache
Expand Down
9 changes: 9 additions & 0 deletions agent/server/http/axon_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ func (h *axonHandler) returnJson(obj interface{}, w http.ResponseWriter) {
w.Write(json)
}

func getBuildVersion() string {
if v := os.Getenv("AXON_BUILD_VERSION"); v != "" {
return v
}
return "dev"
}

func (h *axonHandler) healthcheck(w http.ResponseWriter, r *http.Request) {
result := map[string]interface{}{
"OK": true,
Expand All @@ -104,11 +111,13 @@ func (h *axonHandler) info(w http.ResponseWriter, r *http.Request) {
Alias string `json:"alias"`
Handlers []string `json:"handlers"`
InstanceID string `json:"instance_id"`
BuildVersion string `json:"build_version"`
}{
InstanceID: h.config.InstanceId,
Integration: h.config.Integration,
Alias: h.config.IntegrationAlias,
Handlers: []string{},
BuildVersion: getBuildVersion(),
}

handlers, err := h.fetchHandlers(r)
Expand Down
2 changes: 2 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ COPY docker/entrypoint.sh /agent/entrypoint.sh
COPY docker/app_entrypoint.sh /app/app_entrypoint.sh
COPY docker/scripts /agent/scripts

ARG BUILD_VERSION=dev
ENV AXON_BUILD_VERSION=${BUILD_VERSION}
ENV CORTEX_API_BASE_URL=https://api.getcortexapp.com
ENV HANDLER_HISTORY_PATH=/var/log/axon/history
ENV NODE_OPTIONS=--use-openssl-ca
Expand Down
Loading