Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
ab12c58
fix: missing currentlyIn index (#5968)
fuskovic Mar 24, 2026
b9fda91
feat(chart): option for components to run as the kargo namespace's de…
krancour Mar 24, 2026
2a01cc3
refactor(chart): don't gate svc acct and rbac resource creation on us…
krancour Mar 24, 2026
cc2a1e0
chore: deprecate ssh urls and keys (#5978)
krancour Mar 25, 2026
87b98f2
docs: modest roadmap updates (#5977)
krancour Mar 25, 2026
292f370
fix(ui): freight assembly page crashing when commits are not found (#…
Marvin9 Mar 26, 2026
caee920
fix(ui): new freight is empty in promotion (#5974)
Marvin9 Mar 26, 2026
c44e317
feat(warehouse): allow chart subscriptions to skip TLS verification (…
EvannDev Mar 26, 2026
a06760a
feat: replicated resources follow ups: immutable replicas, docs, ui c…
krancour Mar 27, 2026
0470848
fix(controller): use --first-parent flag when looking at a commit's d…
krancour Mar 27, 2026
b3afe9f
chore: use test context where appropriate (#5991)
fuskovic Mar 27, 2026
e63c1f2
feat: add toml related promotion steps (#5996)
nikita-unity Mar 28, 2026
39c72ee
fix: produce cleaner lists of commits (#5999)
krancour Mar 30, 2026
cf64443
refactor: speed up image build with mounted caches (#6001)
krancour Mar 30, 2026
63923e2
refactor: make generated REST API client its own module (#6000)
krancour Mar 30, 2026
3fb6b28
chore(deps): bump sigstore/cosign-installer from 4.0.0 to 4.1.1 (#6002)
dependabot[bot] Mar 30, 2026
39528e6
chore(deps): bump azure/setup-helm from 4.3.1 to 5.0.0 (#6003)
dependabot[bot] Mar 30, 2026
1abe281
chore(deps): bump actions/deploy-pages from 4.0.5 to 5.0.0 (#6004)
dependabot[bot] Mar 30, 2026
815c44e
chore(deps): bump codecov/codecov-action from 5.5.3 to 6.0.0 (#6005)
dependabot[bot] Mar 30, 2026
90543f3
chore(deps): bump korthout/backport-action from 4.2.0 to 4.3.0 (#6008)
dependabot[bot] Mar 30, 2026
3d87829
chore(deps): bump the go-patch group across 1 directory with 4 update…
dependabot[bot] Mar 30, 2026
7eb048a
chore(deps): bump github.com/go-git/go-git/v5 from 5.16.5 to 5.17.1 (…
dependabot[bot] Mar 30, 2026
5dd6f46
feat: add startupProbe to account for indeterminate cache sync (#6016)
jessesuen Mar 30, 2026
0c8bc39
feat(ui): align promotion step error below the individual step (#5973)
Marvin9 Mar 31, 2026
5e0debf
fix: improve responsiveness to changing app status (#5995)
krancour Mar 31, 2026
c578950
feat: sinceDate discovery limiter (#5992)
fuskovic Mar 31, 2026
8e9c4c4
test: add promo-gater testing utility (#5955)
EronWright Apr 1, 2026
6775bc0
feat: Add squash merge support to git-merge-pr promotion step (#5581)
bobdoah Apr 2, 2026
850810c
fix: prevent stale cache from re-executing promotion steps (#6029)
EronWright Apr 2, 2026
5cf0de1
docs: updating IRSA managing secrets hyperlink to ambient credentials…
EmilyXinyi Apr 2, 2026
8fdd7f4
chore: follow up on #5995 with removing 30s suggested retry workaroun…
krancour Apr 2, 2026
332950d
refactor: Replace raw object responses in APIs with kargo and k8s api…
hairyhum Apr 2, 2026
7189906
feat: add oci-push promotion step (#5782)
EronWright Apr 2, 2026
9905759
feat: add argocd-wait promotion step (#5832)
EronWright Apr 2, 2026
d137da0
chore(deps): bump github.com/go-jose/go-jose/v4 from 4.1.3 to 4.1.4 (…
dependabot[bot] Apr 3, 2026
10f5ce2
chore(deps): bump the go-patch group with 3 updates (#6045)
dependabot[bot] Apr 6, 2026
89cd504
chore(deps): bump actions/setup-go from 6.3.0 to 6.4.0 (#6043)
dependabot[bot] Apr 6, 2026
512b472
chore(deps): bump svenstaro/upload-release-action from 2.11.4 to 2.11…
dependabot[bot] Apr 6, 2026
7fd63c8
chore(deps): bump docker/login-action from 4.0.0 to 4.1.0 (#6040)
dependabot[bot] Apr 6, 2026
1ea366a
chore(deps): bump actions/configure-pages from 5.0.0 to 6.0.0 (#6039)
dependabot[bot] Apr 6, 2026
db9e9b8
chore(deps): bump step-security/harden-runner from 2.16.0 to 2.16.1 (…
dependabot[bot] Apr 6, 2026
20a367d
fix(ui): my projects experience (#6054)
Marvin9 Apr 9, 2026
7a7554a
feat(ui): migrate settings from ConnectRPC to REST API (#6052)
rpelczar Apr 9, 2026
a97d759
fix(codegen): add missing required field markers to OpenAPI spec (#6056)
rpelczar Apr 9, 2026
8445834
Merge upstream Kargo 2026-04-09
snickell Apr 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/backport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
if: github.repository_owner == 'akuity' && github.event.pull_request.merged && (github.event_name != 'labeled' || startsWith('backport/', github.event.label.name))
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: audit

- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Create backport PRs
uses: korthout/backport-action@4aaf0e03a94ff0a619c9a511b61aeb42adea5b02 # v4.2.0
uses: korthout/backport-action@3c06f323a58619da1e8522229ebc8d5de2633e46 # v4.3.0
# xref: https://github.com/korthout/backport-action#inputs
with:
# Use token to allow workflows to be triggered for the created PR
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
# "stable" is updated to >= 2.42.0 (which supports `--orphan` for `git
# worktree add`).
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: audit

Expand All @@ -50,15 +50,15 @@ jobs:
mv $tmp_file $report
done
- name: Upload coverage reports
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5.5.3
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}

lint-and-typecheck-ui:
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: audit

Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
image: *golangImage
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: audit

Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
image: *golangImage
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: audit

Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
image: *golangImage
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: audit

Expand Down Expand Up @@ -180,7 +180,7 @@ jobs:
image: *golangImage
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: audit

Expand Down Expand Up @@ -232,7 +232,7 @@ jobs:
- 5000:5000
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: audit

Expand Down Expand Up @@ -266,7 +266,7 @@ jobs:
image: *golangImage
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: audit

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/governance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: audit

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: audit

Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
unstable-version: ${{ steps.unstable-version.outputs.unstable-version }}
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: audit

Expand All @@ -44,7 +44,7 @@ jobs:
echo "Repository is set to: $REPO"
echo "repo=$REPO" >> $GITHUB_OUTPUT
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: '1.26.0'
- name: Set version for unstable builds
Expand All @@ -62,11 +62,11 @@ jobs:
with:
driver-opts: network=host
- name: Install Cosign
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
uses: sigstore/cosign-installer@cad07c2e89fa2edd6e2d7bab4c1aa38e53f76003 # v4.1.1
with:
cosign-release: 'v2.2.1' # optional
- name: Login to GHCR
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: audit

Expand All @@ -166,11 +166,11 @@ jobs:
echo "VERSION is set to: $VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Set up Helm
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1
uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0
with:
version: '3.19.4'
- name: Login to GHCR
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -193,7 +193,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: audit

Expand Down Expand Up @@ -245,7 +245,7 @@ jobs:
hash-windows-arm64: ${{ steps.hash.outputs.hash-windows-arm64 }}
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: audit

Expand Down Expand Up @@ -283,7 +283,7 @@ jobs:
run: |
make sign-and-notarize-cli
- name: Publish CLI
uses: svenstaro/upload-release-action@b98a3b12e86552593f3e4e577ca8a62aa2f3f22b # v2.11.4
uses: svenstaro/upload-release-action@29e53e917877a24fad85510ded594ab3c9ca12de # v2.11.5
with:
file: bin/*
file_glob: true
Expand All @@ -308,7 +308,7 @@ jobs:
arch: [amd64, arm64]
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: audit

Expand Down Expand Up @@ -375,7 +375,7 @@ jobs:
HASHES: ${{ toJSON(needs.publish-cli.outputs) }}
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: audit

Expand Down Expand Up @@ -413,7 +413,7 @@ jobs:
image: *golangImage
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: audit

Expand All @@ -424,11 +424,11 @@ jobs:
mkdir _site
go run ./hack/best-releases > _site/best-releases.json
- name: Configure Pages
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
with:
path: _site
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0
2 changes: 1 addition & 1 deletion .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
timeout-minutes: 30 # Don't wait 6 hours to cancel workflow if it hangs.
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
with:
egress-policy: audit

Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ vendor/
internal/server/ui/
.DS_Store
docs/static/swagger.json
docs/static/swagger.yaml
65 changes: 65 additions & 0 deletions .swaggo
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
// Override type aliases that go-swagger mishandles. Go-swagger wraps referenced
// types in anonymous structs, which breaks JSON deserialization when the wire
// format is a bare string or integer. Replacing them with primitives here
// prevents that.

replace k8s.io/apimachinery/pkg/apis/meta/v1.Duration string
replace k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSON object
replace k8s.io/apimachinery/pkg/apis/meta/v1.ConditionStatus string
replace k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorOperator string
replace k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsOperationType string
replace k8s.io/apimachinery/pkg/util/intstr.Type integer

replace k8s.io/api/core/v1.AppArmorProfileType string
replace k8s.io/api/core/v1.AzureDataDiskCachingMode string
replace k8s.io/api/core/v1.AzureDataDiskKind string
replace k8s.io/api/core/v1.CompletionMode string
replace k8s.io/api/core/v1.ConditionStatus string
replace k8s.io/api/core/v1.ContainerRestartPolicy string
replace k8s.io/api/core/v1.ContainerRestartRuleAction string
replace k8s.io/api/core/v1.ContainerRestartRuleOnExitCodesOperator string
replace k8s.io/api/core/v1.DNSPolicy string
replace k8s.io/api/core/v1.HostPathType string
replace k8s.io/api/core/v1.MountPropagationMode string
replace k8s.io/api/core/v1.NodeInclusionPolicy string
replace k8s.io/api/core/v1.NodeSelectorOperator string
replace k8s.io/api/core/v1.OSName string
replace k8s.io/api/core/v1.PersistentVolumeAccessMode string
replace k8s.io/api/core/v1.PersistentVolumeMode string
replace k8s.io/api/core/v1.PodConditionType string
replace k8s.io/api/core/v1.PodFSGroupChangePolicy string
replace k8s.io/api/core/v1.PodFailurePolicyAction string
replace k8s.io/api/core/v1.PodFailurePolicyOnExitCodesOperator string
replace k8s.io/api/core/v1.PodReplacementPolicy string
replace k8s.io/api/core/v1.PodSELinuxChangePolicy string
replace k8s.io/api/core/v1.PreemptionPolicy string
replace k8s.io/api/core/v1.ProcMountType string
replace k8s.io/api/core/v1.Protocol string
replace k8s.io/api/core/v1.PullPolicy string
replace k8s.io/api/core/v1.RecursiveReadOnlyMode string
replace k8s.io/api/core/v1.ResourceName string
replace k8s.io/api/core/v1.ResourceResizeRestartPolicy string
replace k8s.io/api/core/v1.RestartPolicy string
replace k8s.io/api/core/v1.SeccompProfileType string
replace k8s.io/api/core/v1.SecretType string
replace k8s.io/api/core/v1.Signal string
replace k8s.io/api/core/v1.StorageMedium string
replace k8s.io/api/core/v1.SupplementalGroupsPolicy string
replace k8s.io/api/core/v1.TaintEffect string
replace k8s.io/api/core/v1.TerminationMessagePolicy string
replace k8s.io/api/core/v1.TolerationOperator string
replace k8s.io/api/core/v1.URIScheme string
replace k8s.io/api/core/v1.UnsatisfiableConstraintAction string

replace github.com/akuity/kargo/api/v1alpha1.AutoPromotionSelectionPolicy string
replace github.com/akuity/kargo/api/v1alpha1.FreightAvailabilityStrategy string
replace github.com/akuity/kargo/api/v1alpha1.FreightCreationPolicy string
replace github.com/akuity/kargo/api/v1alpha1.FreightOriginKind string
replace github.com/akuity/kargo/api/v1alpha1.GenericWebhookActionType string
replace github.com/akuity/kargo/api/v1alpha1.GenericWebhookTargetKind string
replace github.com/akuity/kargo/api/v1alpha1.HealthState string
replace github.com/akuity/kargo/api/v1alpha1.IndexSelectorOperator string
replace github.com/akuity/kargo/api/v1alpha1.PromotionPhase string
replace github.com/akuity/kargo/api/v1alpha1.PromotionStepStatus string
replace github.com/akuity/kargo/api/v1alpha1.VerificationPhase string
replace github.com/akuity/kargo/api/stubs/rollouts/v1alpha1.AnalysisPhase string
15 changes: 9 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ RUN npm install --global pnpm@${PNPM_VERSION}
WORKDIR /ui
COPY ["ui/package.json", "ui/pnpm-lock.yaml", "./"]

RUN pnpm install
RUN --mount=type=cache,target=/root/.local/share/pnpm/store pnpm install
COPY ["ui/", "."]

ARG VERSION
RUN NODE_ENV='production' VERSION=${VERSION} pnpm run build
RUN --mount=type=cache,target=/root/.local/share/pnpm/store NODE_ENV='production' VERSION=${VERSION} pnpm run build

####################################################################################################
# back-end-builder
Expand All @@ -31,8 +31,9 @@ ARG CGO_ENABLED=0

WORKDIR /kargo
COPY ["api/go.mod", "api/go.sum", "api/"]
COPY ["pkg/client/generated/go.mod", "pkg/client/generated/go.sum", "pkg/client/generated/"]
COPY ["go.mod", "go.sum", "./"]
RUN go mod download
RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build go mod download
COPY api/ api/
COPY pkg/ pkg/
COPY cmd/ cmd/
Expand All @@ -42,13 +43,15 @@ ARG VERSION
ARG GIT_COMMIT
ARG GIT_TREE_STATE

RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build \
RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build \
GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build \
-trimpath \
-ldflags "-w -s" \
-o bin/credential-helper \
./cmd/credential-helper

RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build \
RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build \
GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build \
-trimpath \
-ldflags "-w -X ${VERSION_PACKAGE}.version=${VERSION} -X ${VERSION_PACKAGE}.buildDate=$(date -u +'%Y-%m-%dT%H:%M:%SZ') -X ${VERSION_PACKAGE}.gitCommit=${GIT_COMMIT} -X ${VERSION_PACKAGE}.gitTreeState=${GIT_TREE_STATE}" \
-o bin/kargo \
Expand Down Expand Up @@ -107,7 +110,7 @@ RUN npm install --global pnpm@${PNPM_VERSION}
WORKDIR /ui
COPY ["ui/package.json", "ui/pnpm-lock.yaml", "./"]

RUN pnpm install
RUN --mount=type=cache,target=/root/.local/share/pnpm/store pnpm install

COPY ["ui/", "."]

Expand Down
Loading
Loading