@@ -18,15 +18,11 @@ jobs:
18
18
steps :
19
19
- name : Checkout Repo
20
20
uses : actions/checkout@v3
21
-
22
- - name : Install Nushell
23
- run : |
24
- sudo snap install nushell --classic
25
-
26
21
- name : Generate build matrix
22
+ uses : DeterminateSystems/nix-installer-action@main
27
23
id : set-matrix
28
24
run : |
29
- nu -c 'let versions = (open ansible/vars.yml | get postgres_major)
25
+ nix run nixpkgs#nushell -- -c 'let versions = (open ansible/vars.yml | get postgres_major)
30
26
let matrix = ($versions | each { |ver|
31
27
let version = ($ver | str trim)
32
28
let dockerfile = $"Dockerfile-($version)"
@@ -54,17 +50,13 @@ jobs:
54
50
build_args : ${{ steps.args.outputs.result }}
55
51
steps :
56
52
- uses : actions/checkout@v3
57
-
58
- - name : Install Nushell
59
- run : |
60
- sudo snap install nushell --classic
61
-
53
+ - uses : DeterminateSystems/nix-installer-action@main
62
54
- name : Set PostgreSQL version environment variable
63
55
run : echo "POSTGRES_MAJOR_VERSION=${{ matrix.version }}" >> $GITHUB_ENV
64
56
65
57
- id : args
66
58
run : |
67
- nu -c '
59
+ nix run nixpkgs#nushell -- -c '
68
60
open ansible/vars.yml
69
61
| items { |key value| {name: $key, item: $value} }
70
62
| where { |it| ($it.item | describe) == "string" }
82
74
timeout-minutes : 180
83
75
steps :
84
76
- uses : actions/checkout@v3
85
- - name : Install Nushell
86
- run : |
87
- sudo snap install nushell --classic
77
+ - uses : DeterminateSystems/nix-installer-action@main
88
78
- run : docker context create builders
89
79
- uses : docker/setup-buildx-action@v3
90
80
with :
96
86
- name : Get image tag
97
87
id : image
98
88
run : |
99
- nu -c '
89
+ nix run nixpkgs#nushell -- -c '
100
90
let version = "${{ matrix.postgres.version }}"
101
91
let release_key = if ($version | str contains "orioledb") {
102
92
$"postgresorioledb-17"
@@ -126,17 +116,15 @@ jobs:
126
116
runs-on : ubuntu-latest
127
117
steps :
128
118
- uses : actions/checkout@v3
129
- - name : Install Nushell
130
- run : |
131
- sudo snap install nushell --classic
119
+ - uses : DeterminateSystems/nix-installer-action@main
132
120
- uses : docker/setup-buildx-action@v3
133
121
- uses : docker/login-action@v2
134
122
with :
135
123
username : ${{ secrets.DOCKER_USERNAME }}
136
124
password : ${{ secrets.DOCKER_PASSWORD }}
137
125
- name : Get image tag
138
126
run : |
139
- nu -c '
127
+ nix run nixpkgs#nushell -- -c '
140
128
let version = "${{ matrix.version }}"
141
129
let release_key = if ($version | str contains "orioledb") {
142
130
$"postgres($version | str replace "-" "")"
@@ -162,13 +150,11 @@ jobs:
162
150
matrix : ${{ steps.get_versions.outputs.matrix }}
163
151
steps :
164
152
- uses : actions/checkout@v3
165
- - name : Install Nushell
166
- run : |
167
- sudo snap install nushell --classic
153
+ - uses : DeterminateSystems/nix-installer-action@main
168
154
- name : Get version
169
155
id : get_versions
170
156
run : |
171
- nu -c '
157
+ nix run nixpkgs#nushell -- -c '
172
158
let version = "${{ matrix.version }}"
173
159
let release_key = if ($version | str contains "orioledb") {
174
160
$"postgres($version | str replace "-" "")"
0 commit comments