Skip to content

Commit

Permalink
test making non-arm dir hash
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusroemer committed May 11, 2024
1 parent f747bea commit c9b78cc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ jobs:
id: files-hash
run: |
DIR_HASH=$(echo -n ${{ hashFiles('website/**', '.github/workflows/website.yml') }})
echo "DIR_HASH=$DIR_HASH${{ env.BUILD_ARM && '-arm'|| '' }}" >> $GITHUB_ENV
if [ ${{ env.BUILD_ARM }} ]; then
echo "NON_ARM_HASH=$DIR_HASH" >> $GITHUB_ENV
echo "DIR_HASH=$DIR_HASH-arm" >> $GITHUB_ENV
else
echo "DIR_HASH=$NON_ARM_HASH" >> $GITHUB_ENV
fi
- name: Setup Docker metadata
id: dockerMetadata
Expand All @@ -53,6 +58,7 @@ jobs:
type=ref,event=branch
type=sha,prefix=commit-
type=raw,value=${{ env.BRANCH_NAME }}-arm,enable=${{ env.BUILD_ARM }}
type=raw,value=${{ env.NON_ARM_HASH }},enable=${{ env.BUILD_ARM }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand Down

0 comments on commit c9b78cc

Please sign in to comment.