Skip to content

Commit e6313b3

Browse files
committed
ci: Try to fix path for helm repo index
1 parent d8ae3a8 commit e6313b3

File tree

4 files changed

+32
-20
lines changed

4 files changed

+32
-20
lines changed

.envrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Automatically sets up your devbox environment whenever you cd into this
22
# directory via our direnv integration:
33

4+
strict_env
5+
6+
export DEVBOX_NO_ENVRC_UPDATE=1
7+
48
eval "$(devbox generate direnv --print-envrc --env-file .dev-envrc)"
59

610
# check out https://www.jetpack.io/devbox/docs/ide_configuration/direnv/

.github/workflows/release-tag.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,23 @@ jobs:
6969
ref: main
7070
fetch-depth: 0
7171

72+
- name: Install devbox
73+
uses: jetpack-io/[email protected]
74+
with:
75+
enable-cache: true
76+
7277
- name: Update and commit Helm index
7378
env:
7479
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75-
FILE_TO_COMMIT: ./docs/static/helm/index.yaml
80+
FILE_TO_COMMIT: docs/static/helm/index.yaml
7681
run: |
7782
devbox run -- helm repo index . \
7883
--url "https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}" \
7984
--merge "${FILE_TO_COMMIT}"
8085
mv index.yaml "${FILE_TO_COMMIT}"
8186
MESSAGE="build(${{ github.ref_name }}): Update Helm index"
8287
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}" \
8489
--field message="${MESSAGE}" \
8590
--field content=@<( base64 -i "${FILE_TO_COMMIT}" ) \
8691
--field encoding="base64" \

devbox.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"crane@latest",
88
"envsubst@latest",
99
"findutils@latest",
10+
"gh@latest",
1011
"ginkgo@latest",
1112
"git@latest",
12-
"github-cli@latest",
1313
"gnumake@latest",
1414
"gnused@latest",
1515
"go@latest",

devbox.lock

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,26 @@
141141
}
142142
}
143143
},
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+
},
144164
"ginkgo@latest": {
145165
"last_modified": "2024-01-24T16:15:02Z",
146166
"resolved": "github:NixOS/nixpkgs/5cd2baa57a9ff2d84f2615700434fa04f3067fdb#ginkgo",
@@ -181,23 +201,6 @@
181201
}
182202
}
183203
},
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-
},
201204
"gnumake@latest": {
202205
"last_modified": "2024-01-25T09:07:51Z",
203206
"resolved": "github:NixOS/nixpkgs/4fddc9be4eaf195d631333908f2a454b03628ee5#gnumake",

0 commit comments

Comments
 (0)