argocd: 2.3.2 -> 2.3.3
change commit and tag to src.rev no more manual update
This commit is contained in:
parent
797b694394
commit
6c21273e1e
@ -2,20 +2,16 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "argocd";
|
pname = "argocd";
|
||||||
version = "2.3.2";
|
version = "2.3.3";
|
||||||
tag = "v${version}";
|
|
||||||
# Update commit to match the tag above
|
|
||||||
# TODO make updadeScript
|
|
||||||
commit = "ecc2af9dcaa12975e654cde8cbbeaffbb315f75c";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "argoproj";
|
owner = "argoproj";
|
||||||
repo = "argo-cd";
|
repo = "argo-cd";
|
||||||
rev = tag;
|
rev = "v${version}";
|
||||||
sha256 = "sha256-n+C4l4U3cDU+fgCnGWOYLdyjknw7n/xPEtC1i8AaU4o=";
|
sha256 = "sha256-ChgWqhkzVKhbyEA+g2flWK/WMxur7UHWXJUcLzp9RTE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-Km+1o6yuuxJs+DNTQ/XVTUFurD5gM5ohwDc7MwJuu5s=";
|
vendorSha256 = "sha256-XrIIMnn65Y10KnVTsmw6vLE53Zra1lWNFgklmaj3gF8=";
|
||||||
|
|
||||||
# Set target as ./cmd per release-cli
|
# Set target as ./cmd per release-cli
|
||||||
# https://github.com/argoproj/argo-cd/blob/master/Makefile#L222
|
# https://github.com/argoproj/argo-cd/blob/master/Makefile#L222
|
||||||
@ -27,8 +23,8 @@ buildGoModule rec {
|
|||||||
"-s" "-w"
|
"-s" "-w"
|
||||||
"-X ${package_url}.version=${version}"
|
"-X ${package_url}.version=${version}"
|
||||||
"-X ${package_url}.buildDate=unknown"
|
"-X ${package_url}.buildDate=unknown"
|
||||||
"-X ${package_url}.gitCommit=${commit}"
|
"-X ${package_url}.gitCommit=${src.rev}"
|
||||||
"-X ${package_url}.gitTag=${tag}"
|
"-X ${package_url}.gitTag=${src.rev}"
|
||||||
"-X ${package_url}.gitTreeState=clean"
|
"-X ${package_url}.gitTreeState=clean"
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -43,7 +39,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
installCheckPhase = ''
|
installCheckPhase = ''
|
||||||
$out/bin/argocd version --client | grep ${tag} > /dev/null
|
$out/bin/argocd version --client | grep ${src.rev} > /dev/null
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user