Skip to content

Commit

Permalink
fix subtle bug
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusroemer committed Sep 18, 2024
1 parent 74f3599 commit d693444
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/backend-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,17 @@ jobs:
- name: Shorten sha
run: echo "sha=${sha::7}" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Generate files hash
id: files-hash
- name: Add filename hash to environment
run: |
# Output the names of all the files as well, so file name changes change the hash
# This needs to be a separate step because hashFiles is done before the run steps
find backend -type f -print | sort | sha256sum > backend/filename_hash
cat backend/filename_hash
- name: Generate files hash
id: files-hash
run: |
DIR_HASH=$(echo -n ${{ hashFiles('backend/**', '.github/workflows/backend-image.yml') }})
echo "DIR_HASH=$DIR_HASH${{ env.BUILD_ARM == 'true' && '-arm' || '' }}" >> $GITHUB_ENV
rm backend/filename_hash
- name: Setup Docker metadata
id: dockerMetadata
uses: docker/metadata-action@v5
Expand Down

0 comments on commit d693444

Please sign in to comment.