Skip to content

Commit

Permalink
ci: Try to fix path for helm repo index
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson committed Feb 8, 2024
1 parent d8ae3a8 commit e6313b3
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 20 deletions.
4 changes: 4 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Automatically sets up your devbox environment whenever you cd into this
# directory via our direnv integration:

strict_env

export DEVBOX_NO_ENVRC_UPDATE=1

eval "$(devbox generate direnv --print-envrc --env-file .dev-envrc)"

# check out https://www.jetpack.io/devbox/docs/ide_configuration/direnv/
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,23 @@ jobs:
ref: main
fetch-depth: 0

- name: Install devbox
uses: jetpack-io/devbox-install-action@v0.8.0
with:
enable-cache: true

- name: Update and commit Helm index
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FILE_TO_COMMIT: ./docs/static/helm/index.yaml
FILE_TO_COMMIT: docs/static/helm/index.yaml
run: |
devbox run -- helm repo index . \
--url "https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}" \
--merge "${FILE_TO_COMMIT}"
mv index.yaml "${FILE_TO_COMMIT}"
MESSAGE="build(${{ github.ref_name }}): Update Helm index"
SHA=$( git rev-parse "main":"${FILE_TO_COMMIT}" )
gh api --method PUT "/repos/:owner/:repo/contents/${FILE_TO_COMMIT}" \
devbox run -- gh api --verbose --method PUT "/repos/:owner/:repo/contents/${FILE_TO_COMMIT}" \
--field message="${MESSAGE}" \
--field content=@<( base64 -i "${FILE_TO_COMMIT}" ) \
--field encoding="base64" \
Expand Down
2 changes: 1 addition & 1 deletion devbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"crane@latest",
"envsubst@latest",
"findutils@latest",
"gh@latest",
"ginkgo@latest",
"git@latest",
"github-cli@latest",
"gnumake@latest",
"gnused@latest",
"go@latest",
Expand Down
37 changes: 20 additions & 17 deletions devbox.lock
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,26 @@
}
}
},
"gh@latest": {
"last_modified": "2024-02-01T15:59:28Z",
"resolved": "github:NixOS/nixpkgs/f38bca1ca559974b36863d0ff4bb710b7bc12890#gh",
"source": "devbox-search",
"version": "2.43.1",
"systems": {
"aarch64-darwin": {
"store_path": "/nix/store/d7mmg9nxx7m785w6izx1qi18v4gm8i0x-gh-2.43.1"
},
"aarch64-linux": {
"store_path": "/nix/store/7q0hrgzcb3080xrr150b93k6ygykr6az-gh-2.43.1"
},
"x86_64-darwin": {
"store_path": "/nix/store/xx0xivnx1zccrzmj5a73bda5y9pla4fk-gh-2.43.1"
},
"x86_64-linux": {
"store_path": "/nix/store/5z5rrhw14z0a2x56m4mhvl4n09wy0c3z-gh-2.43.1"
}
}
},
"ginkgo@latest": {
"last_modified": "2024-01-24T16:15:02Z",
"resolved": "github:NixOS/nixpkgs/5cd2baa57a9ff2d84f2615700434fa04f3067fdb#ginkgo",
Expand Down Expand Up @@ -181,23 +201,6 @@
}
}
},
"github-cli@latest": {
"last_modified": "2023-02-24T09:01:09Z",
"resolved": "github:NixOS/nixpkgs/7d0ed7f2e5aea07ab22ccb338d27fbe347ed2f11#github-cli",
"source": "devbox-search",
"version": "2.23.0",
"systems": {
"aarch64-darwin": {
"store_path": "/nix/store/i3pg3w9482dqw6wl7f2z5vn1c5bspk4b-gh-2.23.0"
},
"x86_64-darwin": {
"store_path": "/nix/store/89m1dqjbicqhvqyxf58x1944h193x05n-gh-2.23.0"
},
"x86_64-linux": {
"store_path": "/nix/store/asx7ishza3n6lffbzs4m7101ggsmd205-gh-2.23.0"
}
}
},
"gnumake@latest": {
"last_modified": "2024-01-25T09:07:51Z",
"resolved": "github:NixOS/nixpkgs/4fddc9be4eaf195d631333908f2a454b03628ee5#gnumake",
Expand Down

0 comments on commit e6313b3

Please sign in to comment.