File tree Expand file tree Collapse file tree 4 files changed +32
-20
lines changed Expand file tree Collapse file tree 4 files changed +32
-20
lines changed Original file line number Diff line number Diff line change 1
1
# Automatically sets up your devbox environment whenever you cd into this
2
2
# directory via our direnv integration:
3
3
4
+ strict_env
5
+
6
+ export DEVBOX_NO_ENVRC_UPDATE=1
7
+
4
8
eval " $( devbox generate direnv --print-envrc --env-file .dev-envrc) "
5
9
6
10
# check out https://www.jetpack.io/devbox/docs/ide_configuration/direnv/
Original file line number Diff line number Diff line change @@ -69,18 +69,23 @@ jobs:
69
69
ref : main
70
70
fetch-depth : 0
71
71
72
+ - name : Install devbox
73
+ uses :
jetpack-io/[email protected]
74
+ with :
75
+ enable-cache : true
76
+
72
77
- name : Update and commit Helm index
73
78
env :
74
79
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
75
- FILE_TO_COMMIT : ./ docs/static/helm/index.yaml
80
+ FILE_TO_COMMIT : docs/static/helm/index.yaml
76
81
run : |
77
82
devbox run -- helm repo index . \
78
83
--url "https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}" \
79
84
--merge "${FILE_TO_COMMIT}"
80
85
mv index.yaml "${FILE_TO_COMMIT}"
81
86
MESSAGE="build(${{ github.ref_name }}): Update Helm index"
82
87
SHA=$( git rev-parse "main":"${FILE_TO_COMMIT}" )
83
- gh api --method PUT "/repos/:owner/:repo/contents/${FILE_TO_COMMIT}" \
88
+ devbox run -- gh api --verbose --method PUT "/repos/:owner/:repo/contents/${FILE_TO_COMMIT}" \
84
89
--field message="${MESSAGE}" \
85
90
--field content=@<( base64 -i "${FILE_TO_COMMIT}" ) \
86
91
--field encoding="base64" \
Original file line number Diff line number Diff line change 7
7
" crane@latest" ,
8
8
" envsubst@latest" ,
9
9
" findutils@latest" ,
10
+ " gh@latest" ,
10
11
" ginkgo@latest" ,
11
12
" git@latest" ,
12
- " github-cli@latest" ,
13
13
" gnumake@latest" ,
14
14
" gnused@latest" ,
15
15
" go@latest" ,
Original file line number Diff line number Diff line change 141
141
}
142
142
}
143
143
},
144
+ "gh@latest": {
145
+ "last_modified": "2024-02-01T15:59:28Z",
146
+ "resolved": "github:NixOS/nixpkgs/f38bca1ca559974b36863d0ff4bb710b7bc12890#gh",
147
+ "source": "devbox-search",
148
+ "version": "2.43.1",
149
+ "systems": {
150
+ "aarch64-darwin": {
151
+ "store_path": "/nix/store/d7mmg9nxx7m785w6izx1qi18v4gm8i0x-gh-2.43.1"
152
+ },
153
+ "aarch64-linux": {
154
+ "store_path": "/nix/store/7q0hrgzcb3080xrr150b93k6ygykr6az-gh-2.43.1"
155
+ },
156
+ "x86_64-darwin": {
157
+ "store_path": "/nix/store/xx0xivnx1zccrzmj5a73bda5y9pla4fk-gh-2.43.1"
158
+ },
159
+ "x86_64-linux": {
160
+ "store_path": "/nix/store/5z5rrhw14z0a2x56m4mhvl4n09wy0c3z-gh-2.43.1"
161
+ }
162
+ }
163
+ },
144
164
"ginkgo@latest": {
145
165
"last_modified": "2024-01-24T16:15:02Z",
146
166
"resolved": "github:NixOS/nixpkgs/5cd2baa57a9ff2d84f2615700434fa04f3067fdb#ginkgo",
181
201
}
182
202
}
183
203
},
184
- "github-cli@latest": {
185
- "last_modified": "2023-02-24T09:01:09Z",
186
- "resolved": "github:NixOS/nixpkgs/7d0ed7f2e5aea07ab22ccb338d27fbe347ed2f11#github-cli",
187
- "source": "devbox-search",
188
- "version": "2.23.0",
189
- "systems": {
190
- "aarch64-darwin": {
191
- "store_path": "/nix/store/i3pg3w9482dqw6wl7f2z5vn1c5bspk4b-gh-2.23.0"
192
- },
193
- "x86_64-darwin": {
194
- "store_path": "/nix/store/89m1dqjbicqhvqyxf58x1944h193x05n-gh-2.23.0"
195
- },
196
- "x86_64-linux": {
197
- "store_path": "/nix/store/asx7ishza3n6lffbzs4m7101ggsmd205-gh-2.23.0"
198
- }
199
- }
200
- },
201
204
"gnumake@latest": {
202
205
"last_modified": "2024-01-25T09:07:51Z",
203
206
"resolved": "github:NixOS/nixpkgs/4fddc9be4eaf195d631333908f2a454b03628ee5#gnumake",
You can’t perform that action at this time.
0 commit comments