Skip to content

Commit

Permalink
docker-image.yml: Cleanup local workfolders
Browse files Browse the repository at this point in the history
the default example from Docker is using /tmp/digest as a working directory.
On self-hosted runners, this directory fills up with used digest entries creating wrong tagging in Dockerhub at the end of the process.
  • Loading branch information
MaStr committed Dec 6, 2024
1 parent 4527556 commit 13f84df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ jobs:
- name: Export digest
run: |
mkdir -p /tmp/digests
rm -v /tmp/digests/* || true
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
touch "/tmp/digests/${digest#sha256:}"
- name: Upload digest
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 13f84df

Please sign in to comment.