WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit 7427252

Browse files
authored
chore: bump nhost/dashboard to 2.30.0 (#964)
1 parent a46a4b6 commit 7427252

File tree

7 files changed

+61
-32
lines changed

7 files changed

+61
-32
lines changed

.github/workflows/wf_build_artifacts.yaml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,23 +67,10 @@ jobs:
6767
make build-docker-image ARCH=${{ inputs.GOARCH }}
6868
if: ${{ ( inputs.GOOS == 'linux' ) }}
6969

70-
- name: "Ammend manifest"
71-
run: |
72-
# hack that speeds up build a lot by crosscompiling with nix/go
73-
# and avoiding to use qemu
74-
mkdir tmp && cd tmp
75-
tar xvzf ../result
76-
sed -i 's/amd64/arm64/g' *.json
77-
tar cvzf image *
78-
rm ../result
79-
cp image ../result
80-
shell: bash
81-
if: ${{ ( inputs.GOOS == 'linux' && inputs.GOARCH == 'arm64' ) }}
82-
8370
- name: "Create a new project"
8471
run: |
8572
export NHOST_DOMAIN=staging.nhost.run
86-
export NHOST_CONFIGSERVER_IMAGE=cli:${{ steps.vars.outputs.VERSION }}
73+
export NHOST_CONFIGSERVER_IMAGE=nhost/cli:${{ steps.vars.outputs.VERSION }}
8774
8875
mkdir new-project
8976
cd new-project

.github/workflows/wf_publish.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,14 @@ jobs:
5050
export VERSION=${{ steps.vars.outputs.VERSION }}
5151
export CONTAINER_NAME=nhost/cli
5252
53-
docker load < ~/artifacts/cli-docker-image-$VERSION-linux-amd64/result
54-
docker tag cli:$VERSION $CONTAINER_NAME:$VERSION-amd64
53+
skopeo copy --insecure-policy \
54+
dir:/home/runner/artifacts/cli-docker-image-$VERSION-linux-amd64 \
55+
docker-daemon:$CONTAINER_NAME:$VERSION-amd64
5556
docker push $CONTAINER_NAME:$VERSION-amd64
5657
57-
docker load < ~/artifacts/cli-docker-image-$VERSION-linux-arm64/result
58-
docker tag cli:$VERSION $CONTAINER_NAME:$VERSION-arm64
58+
skopeo copy --insecure-policy \
59+
dir:/home/runner/artifacts/cli-docker-image-$VERSION-linux-arm64 \
60+
docker-daemon:$CONTAINER_NAME:$VERSION-arm64
5961
docker push $CONTAINER_NAME:$VERSION-arm64
6062
6163
docker manifest create \

Makefile

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ else
1212
OS?=linux
1313
endif
1414

15-
VER=$(shell echo $(VERSION) | sed -e 's/\//_/g')
15+
16+
ifdef VER
17+
VERSION=$(shell echo $(VER) | sed -e 's/^v//g' -e 's/\//_/g')
18+
else
19+
VERSION=$(shell grep -oP 'version\s*=\s*"\K[^"]+' flake.nix | head -n 1)
20+
endif
1621

1722

1823
.PHONY: check
@@ -33,10 +38,13 @@ build-docker-image: ## Build docker image
3338
nix build $(docker-build-options) \
3439
.\#packages.$(HOST_ARCH)-linux.docker-image-$(ARCH) \
3540
--print-build-logs
36-
docker load < result
41+
skopeo copy --insecure-policy \
42+
--override-arch $(ARCH) \
43+
dir:./result docker-daemon:nhost/cli:$(VERSION)
3744

3845

3946
.PHONY: get-version
4047
get-version: ## Return version
41-
@echo $(VER) > VERSION
42-
@echo $(VER)
48+
@sed -i '/^\s*version = "0.0.0-dev";/s//version = "${VERSION}";/' flake.nix
49+
@sed -i '/^\s*created = "1970-.*";/s//created = "${shell date --utc '+%Y-%m-%dT%H:%M:%SZ'}";/' flake.nix
50+
@echo $(VERSION)

VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

cmd/dev/up.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func CommandUp() *cli.Command { //nolint:funlen
110110
&cli.StringFlag{ //nolint:exhaustruct
111111
Name: flagDashboardVersion,
112112
Usage: "Dashboard version to use",
113-
Value: "nhost/dashboard:2.29.0",
113+
Value: "nhost/dashboard:2.30.0",
114114
EnvVars: []string{"NHOST_DASHBOARD_VERSION"},
115115
},
116116
&cli.StringFlag{ //nolint:exhaustruct

flake.lock

Lines changed: 30 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
nixpkgs.follows = "nixops/nixpkgs";
55
flake-utils.follows = "nixops/flake-utils";
66
nix-filter.follows = "nixops/nix-filter";
7+
nix2container.follows = "nixops/nix2container";
78
};
89

9-
outputs = { self, nixops, nixpkgs, flake-utils, nix-filter }:
10+
outputs = { self, nixops, nixpkgs, flake-utils, nix-filter, nix2container }:
1011
flake-utils.lib.eachDefaultSystem (system:
1112
let
1213
overlays = [
@@ -59,11 +60,13 @@
5960
nativeBuildInputs = with pkgs; [
6061
];
6162

62-
nixops-lib = nixops.lib { inherit pkgs; };
63+
nix2containerPkgs = nix2container.packages.${system};
64+
nixops-lib = nixops.lib { inherit pkgs nix2containerPkgs; };
6365

6466
name = "cli";
6567
description = "Nhost CLI";
66-
version = pkgs.lib.fileContents ./VERSION;
68+
version = "0.0.0-dev";
69+
created = "1970-01-01T00:00:00Z";
6770
module = "github.com/nhost/cli";
6871
submodule = ".";
6972

@@ -92,6 +95,7 @@
9295
buildInputs = with pkgs; [
9396
certbot-full
9497
python312Packages.certbot-dns-route53
98+
skopeo
9599
] ++ checkDeps ++ buildInputs ++ nativeBuildInputs;
96100
};
97101
};
@@ -142,13 +146,15 @@
142146
});
143147

144148
docker-image-arm64 = nixops-lib.go.docker-image {
145-
inherit name version buildInputs;
149+
inherit name version created buildInputs;
150+
arch = "arm64";
146151

147152
package = cli-arm64-linux;
148153
};
149154

150155
docker-image-amd64 = nixops-lib.go.docker-image {
151-
inherit name version buildInputs;
156+
inherit name version created buildInputs;
157+
arch = "amd64";
152158

153159
package = cli-amd64-linux;
154160
};

0 commit comments

Comments
 (0)