Skip to content

Commit

Permalink
feat: Improvement for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
flemzord committed Jan 31, 2023
1 parent 2ddc353 commit 61442fd
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 191 deletions.
27 changes: 0 additions & 27 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

22 changes: 0 additions & 22 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

7 changes: 0 additions & 7 deletions .github/dependabot.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/codeql.yml

This file was deleted.

92 changes: 0 additions & 92 deletions .github/workflows/main.yml

This file was deleted.

19 changes: 9 additions & 10 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ builds:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
Expand Down Expand Up @@ -67,8 +66,8 @@ release:
dockers:
- image_templates: ["ghcr.io/formancehq/{{ .ProjectName }}:{{ .Version }}-amd64"]
dockerfile: Dockerfile
- image_templates: ["ghcr.io/formancehq/{{ .ProjectName }}:v{{ .Version }}-amd64"]
dockerfile: build.Dockerfile
use: buildx
build_flag_templates:
- --platform=linux/amd64
Expand All @@ -80,9 +79,9 @@ dockers:
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=MIT
- image_templates: [ "ghcr.io/formancehq/{{ .ProjectName }}:{{ .Version }}-arm64" ]
- image_templates: [ "ghcr.io/formancehq/{{ .ProjectName }}:v{{ .Version }}-arm64" ]
goarch: arm64
dockerfile: Dockerfile
dockerfile: build.Dockerfile
use: buildx
build_flag_templates:
- --platform=linux/arm64/v8
Expand All @@ -95,11 +94,11 @@ dockers:
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=MIT
docker_manifests:
- name_template: ghcr.io/formancehq/{{ .ProjectName }}:{{ .Version }}
- name_template: ghcr.io/formancehq/{{ .ProjectName }}:v{{ .Version }}
image_templates:
- ghcr.io/formancehq/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/formancehq/{{ .ProjectName }}:{{ .Version }}-arm64
- ghcr.io/formancehq/{{ .ProjectName }}:v{{ .Version }}-amd64
- ghcr.io/formancehq/{{ .ProjectName }}:v{{ .Version }}-arm64
- name_template: ghcr.io/formancehq/{{ .ProjectName }}:latest
image_templates:
- ghcr.io/formancehq/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/formancehq/{{ .ProjectName }}:{{ .Version }}-arm64
- ghcr.io/formancehq/{{ .ProjectName }}:v{{ .Version }}-amd64
- ghcr.io/formancehq/{{ .ProjectName }}:v{{ .Version }}-arm64
6 changes: 6 additions & 0 deletions build.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ubuntu:jammy
RUN apt update && apt install -y ca-certificates curl && rm -rf /var/lib/apt/lists/*
COPY payments /usr/bin/payments
ENV OTEL_SERVICE_NAME payments
ENTRYPOINT ["/usr/bin/payments"]
CMD ["serve"]

0 comments on commit 61442fd

Please sign in to comment.