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 63e5b65
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/docker-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
fetch-depth: '0'

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down Expand Up @@ -77,6 +78,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 63e5b65

Please sign in to comment.