Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ project_name: fctl

includes:
- from_url:
url: https://raw.githubusercontent.com/formancehq/earthly/refs/heads/main/.goreleaser.default.yaml
url: https://raw.githubusercontent.com/formancehq/earthly/refs/heads/main/.goreleaser.default-v2.yaml

builds:
- binary: fctl
Expand All @@ -30,12 +30,12 @@ builds:

archives:
- id: "{{.ProjectName}}"
builds:
ids:
- fctl
format_overrides:
- goos: windows
format: zip
format: tar.gz
formats: [zip]
formats: [tar.gz]
name_template: "{{.ProjectName}}_{{.Os}}-{{.Arch}}"
files:
- completions/*
Expand Down Expand Up @@ -87,15 +87,15 @@ nfpms:
- id: packages
package_name: fctl
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
builds:
ids:
- fctl
homepage: https://formance.com
maintainer: Maxence Maireaux <maxence@formance.com>
formats:
- deb
- rpm

furies:
gemfury:
- account: formance
ids:
- packages
Expand Down
3 changes: 2 additions & 1 deletion build.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM ghcr.io/formancehq/base:22.04
COPY fctl /usr/bin/fctl
ARG TARGETPLATFORM
COPY $TARGETPLATFORM/fctl /usr/bin/fctl
ENV OTEL_SERVICE_NAME fctl
ENTRYPOINT ["/usr/bin/fctl"]
49 changes: 12 additions & 37 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.2511";
nixpkgs-unstable.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1";

nur = {
url = "github:nix-community/NUR";
inputs.nixpkgs.follows = "nixpkgs";
goreleaser = {
url = "github:goreleaser/nur/52282e9a2d7c6882e9e0e8675d593b928c89e323";
flake = false;
};
};

outputs = { self, nixpkgs, nixpkgs-unstable, nur }:
outputs = { self, nixpkgs, nixpkgs-unstable, goreleaser }:
let
supportedSystems = [
"x86_64-linux"
Expand All @@ -25,7 +25,7 @@
let
pkgs = import nixpkgs {
inherit system;
overlays = [ nur.overlays.default ];
overlays = [ ];
config.allowUnfreePredicate = pkg: builtins.elem (nixpkgs.lib.getName pkg) [
"goreleaser-pro"
];
Expand Down Expand Up @@ -102,7 +102,7 @@
openapi-generator-cli
];
otherPackages = [
pkgs.nur.repos.goreleaser.goreleaser-pro
(pkgs.callPackage "${goreleaser}/pkgs/goreleaser-pro" { })
self.packages.${system}.speakeasy
];
in
Expand Down
3 changes: 2 additions & 1 deletion scratch.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM ghcr.io/formancehq/base:scratch
COPY fctl /usr/bin/fctl
ARG TARGETPLATFORM
COPY $TARGETPLATFORM/fctl /usr/bin/fctl
ENV OTEL_SERVICE_NAME fctl
ENTRYPOINT ["/usr/bin/fctl"]
Loading