From 2e20ca6761380072a073d487bcefe2e900bfc336 Mon Sep 17 00:00:00 2001 From: Chris Martin Date: Mon, 5 Feb 2024 16:12:56 +0000 Subject: [PATCH] wip (#3371) Signed-off-by: Chris Martin Co-authored-by: Chris Martin --- .goreleaser.yml | 23 +++++++++++++++++++++++ build_goreleaser/queryapi/Dockerfile | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index bfb198b292a..a1d8d79c903 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -144,6 +144,15 @@ builds: - linux goarch: - amd64 + - env: [ CGO_ENABLED=0 ] + id: queryapi + binary: queryapi + main: ./cmd/queryapi/main.go + mod_timestamp: '{{ .CommitTimestamp }}' + goos: + - linux + goarch: + - amd64 - env: [CGO_ENABLED=0] id: armadactl binary: armadactl @@ -439,6 +448,20 @@ dockers: - config/binoculars/config.yaml dockerfile: ./build_goreleaser/binoculars/Dockerfile + - id: queryapi + use: buildx + goos: linux + goarch: amd64 + image_templates: + - "{{ .Env.DOCKER_REPO }}armada-queryapi:latest" + - "{{ .Env.DOCKER_REPO }}armada-queryapi:{{ .Version }}" + build_flag_templates: *BUILD_FLAG_TEMPLATES + ids: + - queryapi + extra_files: + - config/queryapi/config.yaml + dockerfile: ./build_goreleaser/queryapi/Dockerfile + - id: jobservice use: buildx goos: linux diff --git a/build_goreleaser/queryapi/Dockerfile b/build_goreleaser/queryapi/Dockerfile index 1af6f375af2..2895d33031f 100644 --- a/build_goreleaser/queryapi/Dockerfile +++ b/build_goreleaser/queryapi/Dockerfile @@ -8,7 +8,7 @@ RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada USER armada COPY queryapi /app/ -COPY config/queriapi/config.yaml /app/config/queryapi/config.yaml +COPY config/queryapi/config.yaml /app/config/queryapi/config.yaml WORKDIR /app