Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
Add labels needed by ghcr (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
nacx authored Mar 4, 2024
1 parent 130d581 commit 6cd5e11
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ FROM scratch

ARG TARGETARCH
ARG TARGETOS
ARG REPO

LABEL org.opencontainers.image.source=${REPO}
LABEL org.opencontainers.image.description="Move OIDC token acquisition out of your app code and into the Istio mesh"
LABEL org.opencontainers.image.licenses="Apache-2.0"

ADD bin/authservice-static-${TARGETOS}-${TARGETARCH} /usr/local/bin/authservice
ENTRYPOINT ["/usr/local/bin/authservice"]
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ docker-%: docker-pre $(OUTDIR)/$(NAME)-static-%
--load \
-f Dockerfile \
--platform $(PLATFORM) \
--build-arg REPO=https://$(GO_MODULE) \
-t $(DOCKER_HUB)/$(NAME):latest-$(ARCH) \
-t $(DOCKER_HUB)/$(NAME):$(DOCKER_TAG)-$(ARCH) \
.
Expand All @@ -151,6 +152,7 @@ docker-push: docker-pre ## Build and push the multi-arch Docker images
$(if $(USE_INSECURE_REGISTRY),$(INSECURE_REGISTRY_ARG),--push) \
-f Dockerfile \
--platform $(PLATFORMS) \
--build-arg REPO=https://$(GO_MODULE) \
-t $(DOCKER_HUB)/$(NAME):$(DOCKER_TAG) \
.

Expand Down

0 comments on commit 6cd5e11

Please sign in to comment.