-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add certifier for *.internal-registry.ci.rox.systems (#1005)
- Loading branch information
1 parent
9001ef8
commit 4f371fc
Showing
5 changed files
with
79 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM certbot/dns-google:v0.38.0 | ||
FROM certbot/dns-google:v2.6.0 | ||
|
||
COPY certifier /usr/local/bin/certifier | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,30 @@ | ||
.PHONY: build | ||
build: | ||
GOOS=linux GOARCH=amd64 go build -o certifier -ldflags='-s -w' *.go | ||
docker build -t certifier:latest . | ||
.PHONY: all | ||
all: image | ||
|
||
TAG=$(shell git describe --tags --abbrev=10 --long) | ||
TAGGED=$(shell git tag --contains | head) | ||
ifneq (,$(TAGGED)) | ||
# We're tagged. Use the tag explicitly. | ||
VERSION := $(TAGGED) | ||
else | ||
# We're on a dev/PR branch | ||
VERSION := $(TAG) | ||
endif | ||
|
||
.PHONY: tag | ||
tag: | ||
@echo $(VERSION) | ||
|
||
IMAGE=us.gcr.io/stackrox-infra/certifier:$(VERSION) | ||
.PHONY: image-name | ||
image-name: | ||
@echo $(IMAGE) | ||
|
||
.PHONY: image | ||
image: | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o certifier -ldflags='-s -w' *.go | ||
docker build -t $(IMAGE) . | ||
|
||
.PHONY: push | ||
push: | ||
docker push $(IMAGE) | cat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters