-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): release version automatically by tag
- Loading branch information
1 parent
5034325
commit 5857e1e
Showing
4 changed files
with
80 additions
and
0 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
dist/ |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
ARG alpine_version=3.16 | ||
FROM alpine:${alpine_version} | ||
COPY ./deploy-agent /usr/local/bin/deploy-agent | ||
ARG docker_credential_gcr_version=2.1.6 | ||
ARG grpc_health_probe_version=0.4.14 | ||
RUN set -ex \ | ||
&& apk add --no-cache --update curl tar \ | ||
&& curl -fsSL "https://github.com/GoogleCloudPlatform/docker-credential-gcr/releases/download/v${docker_credential_gcr_version}/docker-credential-gcr_linux_amd64-${docker_credential_gcr_version}.tar.gz" \ | ||
| tar -xzf- docker-credential-gcr \ | ||
&& mv docker-credential-gcr /usr/local/bin/ \ | ||
&& docker-credential-gcr version \ | ||
&& docker-credential-gcr configure-docker --include-artifact-registry \ | ||
&& curl -fsSL -o /usr/local/bin/grpc_health_probe "https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/v${grpc_health_probe_version}/grpc_health_probe-linux-amd64" \ | ||
&& chmod +x /usr/local/bin/grpc_health_probe | ||
EXPOSE 8080 | ||
ENTRYPOINT ["/usr/local/bin/deploy-agent"] |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
builds: | ||
- id: deploy-agent | ||
binary: deploy-agent | ||
flags: | ||
- -trimpath | ||
goos: | ||
- linux | ||
- darwin | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
goarm: | ||
- 7 | ||
|
||
dockers: | ||
- id: deploy-agent-linux-amd64 | ||
dockerfile: Dockerfile.goreleaser | ||
goos: linux | ||
goarch: amd64 | ||
build_flag_templates: | ||
- --pull | ||
- --label=org.opencontainers.image.created={{ .Date }} | ||
- --label=org.opencontainers.image.title={{ .ProjectName }} | ||
- --label=org.opencontainers.image.revision={{ .FullCommit }} | ||
- --label=org.opencontainers.image.version={{ .Version }} | ||
image_templates: | ||
- tsuru/deploy-agent:{{ .Tag }} | ||
- tsuru/deploy-agent:v{{ .Major }} | ||
- tsuru/deploy-agent:v{{ .Major }}.{{ .Minor }} | ||
- tsuru/deploy-agent:latest |