Skip to content

Commit

Permalink
Log successful runs to a branch
Browse files Browse the repository at this point in the history
  • Loading branch information
errge committed Oct 31, 2023
1 parent be84c00 commit bf73481
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/docker-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,20 @@ jobs:
provenance: false
sbom: false

- name: Log run info to a branch
# This provides a branch where it's easy to see if a build
# succeeded for a commit hash. A happy side-effect might also
# be, that thanks to this branch, our automatic scheduled builds
# will hopefully not be deactivated after 60 days... We need
# that anyway, because we want to apply security updates from
# nilcons/debian automtaically once a month.
run: |
git checkout actions-log
touch ${{ github.sha }}
git add ${{ github.sha }}
git commit -m 'Pipeline finished'
git push
# We have this env section at the end, because the weird quoting that
# is needed inside of it is breaking emacs highlight behind it...
env:
Expand Down

0 comments on commit bf73481

Please sign in to comment.