diff --git a/.envrc b/.envrc index abc4aa4ed..a7a92ff99 100644 --- a/.envrc +++ b/.envrc @@ -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/ diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 40afc7a7b..0bc3d053d 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -69,10 +69,15 @@ 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 }}" \ @@ -80,7 +85,7 @@ jobs: 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" \ diff --git a/devbox.json b/devbox.json index b15f3a0a6..87379b91b 100644 --- a/devbox.json +++ b/devbox.json @@ -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", diff --git a/devbox.lock b/devbox.lock index 360365df2..57863d728 100644 --- a/devbox.lock +++ b/devbox.lock @@ -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", @@ -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",