Skip to content

Commit

Permalink
Add gcloud to the devshell for authenticating against the Gadget dock…
Browse files Browse the repository at this point in the history
…er registry
  • Loading branch information
airhorns committed Jan 3, 2025
1 parent 1c05a74 commit 0a23dc3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,7 @@ upload-container-image:
ifndef version
$(error version variable must be set)
else
docker build --platform linux/arm64,linux/amd64 -t gcr.io/gadget-core-production/dateilager:$(version) -t gcr.io/gadget-core-production/dateilager:latest .
docker push gcr.io/gadget-core-production/dateilager:$(version)
docker push gcr.io/gadget-core-production/dateilager:latest
docker build --platform linux/arm64,linux/amd64 --push -t gcr.io/gadget-core-production/dateilager:$(version) -t gcr.io/gadget-core-production/dateilager:latest .
endif

upload-prerelease-container-image:
Expand Down
7 changes: 5 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
callPackage = pkgs.newScope (flake.packages // { inherit lib callPackage; });
in
{
packages = {
packages = {
## DateiLager development scripts

clean = callPackage ./development/nix/scripts/clean.nix { };
Expand All @@ -54,6 +54,8 @@

postgresql = pkgs.postgresql_14;

google-cloud-sdk = pkgs.google-cloud-sdk;

golangci-lint = pkgs.golangci-lint;

glibcLocales = pkgs.glibcLocales;
Expand All @@ -77,6 +79,7 @@
flake.packages.clean
flake.packages.golangci-lint
flake.packages.glibcLocales
flake.packages.google-cloud-sdk
git
protobuf
protoc-gen-go
Expand All @@ -91,7 +94,7 @@
# silence ginko deprecations -- they come from the csi test suite that we don't control
export ACK_GINKGO_DEPRECATIONS=1.16.5
'';
'';
};
}
)));
Expand Down

0 comments on commit 0a23dc3

Please sign in to comment.