Skip to content
This repository has been archived by the owner on Jan 12, 2025. It is now read-only.

Commit

Permalink
Change workflow steps
Browse files Browse the repository at this point in the history
  • Loading branch information
charles8191 authored Jan 5, 2025
1 parent d6dd2bf commit 8a8102d
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,31 @@ jobs:
set -euxo pipefail
mkdir out-rhel
podman run -v ./out-rhel:/out ghcr.io/charles8191/hardened_malloc/artifact:debian
- name: Push binaries
- name: Configure Git
run: |
set -euxo pipefail
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Push Alpine binary
run: |
set -euxo pipefail
cp -vf out-alpine/libhardened_malloc.so libhardened_malloc-alpine.so
git add libhardened_malloc-alpine.so
git commit --allow-empty -m "[AUTOMATED] Upload Alpine binary"
git push
- name: Push Debian binary
run: |
set -euxo pipefail
cp -vf out-debian/libhardened_malloc.so libhardened_malloc-debian.so
git add libhardened_malloc-debian.so
git commit --allow-empty -m "[AUTOMATED] Upload Debian binary"
git push
- name: Push RHEL binary
run: |
set -euxo pipefail
cp -vf out-rhel/libhardened_malloc.so libhardened_malloc-rhel.so
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add libhardened_malloc-{alpine,debian,rhel}.so
git commit --allow-empty -m "[AUTOMATED] Upload binaries"
git add libhardened_malloc-rhel.so
git commit --allow-empty -m "[AUTOMATED] Upload RHEL binary"
git push
- name: Push Alpine container
run: podman push ghcr.io/charles8191/hardened_malloc/artifact:alpine
Expand Down

0 comments on commit 8a8102d

Please sign in to comment.