Commit 0986cad 1 parent f25e7fb commit 0986cad Copy full SHA for 0986cad
File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 21
21
image_name : " tackle2-hub"
22
22
containerfile : " ./Dockerfile"
23
23
architectures : ' [ "amd64", "arm64" ]'
24
+ extra-args : |
25
+ --build-arg
26
+ VERSION=${{ github.tag}}-${{ github.ref }}
24
27
secrets :
25
28
registry_username : ${{ secrets.QUAY_PUBLISH_ROBOT }}
26
29
registry_password : ${{ secrets.QUAY_PUBLISH_TOKEN }}
Original file line number Diff line number Diff line change @@ -15,13 +15,15 @@ FROM quay.io/konveyor/static-report as report
15
15
16
16
FROM registry.access.redhat.com/ubi9/ubi-minimal
17
17
ARG SEED_ROOT
18
+ ARG VERSION=latest
18
19
COPY --from=builder /opt/app-root/src/bin/hub /usr/local/bin/tackle-hub
19
- COPY --from=builder /opt/app-root/src/bin/.build /etc/hub-build
20
20
COPY --from=builder /opt/app-root/src/auth/roles.yaml /tmp/roles.yaml
21
21
COPY --from=builder /opt/app-root/src/auth/users.yaml /tmp/users.yaml
22
22
COPY --from=builder ${SEED_ROOT}/resources/ /tmp/seed
23
23
COPY --from=report /usr/local/static-report /tmp/analysis/report
24
24
25
+ RUN echo "${VERSION}" > /etc/hub-build
26
+
25
27
RUN microdnf -y install \
26
28
sqlite \
27
29
&& microdnf -y clean all
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ debug: generate fmt vet
60
60
61
61
docker : vet
62
62
go build $(BUILD )
63
- git describe --always --match " v[0-9]*" --tags HEAD > bin/.build
64
63
65
64
# Run against the configured Kubernetes cluster in ~/.kube/config
66
65
run : fmt vet
You can’t perform that action at this time.
0 commit comments