Skip to content

Commit

Permalink
Update publish-docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
voc0der authored Dec 9, 2024
1 parent b9201f0 commit 85f26ea
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@ jobs:
- name: install nix
uses: cachix/install-nix-action@v27

- name: install dependencies (bun)
run: |
curl -fsSL https://bun.sh/install | bash
export PATH=$HOME/.bun/bin:$PATH
- name: run bun install
run: bun install --no-progress --frozen-lockfile

- name: fetch current hash of node_modules
run: |
# Calculate the hash of node_modules after running bun install
HASH=$(sha256sum ./node_modules/* | sha256sum | awk '{print $1}')
echo "Calculated node_modules hash: $HASH"
# Update the outputHash in flake.nix with the new hash
sed -i "s|outputHash = .*|outputHash = \"sha256-$HASH\"|" flake.nix
- name: build docker image
run: nix build -L .#dockerImage

Expand Down

0 comments on commit 85f26ea

Please sign in to comment.