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

Commit

Permalink
Fix oversight, change set -x to set -ex
Browse files Browse the repository at this point in the history
  • Loading branch information
charles8191 authored Nov 13, 2024
1 parent f851738 commit 7114f8a
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,38 @@ jobs:
- uses: actions/checkout@v4
- name: Login
run: |
set -x
set -ex
echo "${{ secrets.GITHUB_TOKEN }}" | podman login ghcr.io -u "${{ github.actor }}" --password-stdin
- name: Build Alpine container
run: |
set -x
set -ex
podman build -t ghcr.io/charles8191/hardened_malloc/artifact:alpine -f Containerfile.alpine
- name: Build Debian container
run: |
set -x
set -ex
podman build -t ghcr.io/charles8191/hardened_malloc/artifact:debian -f Containerfile.debian
- name: Build binary using Alpine
run: |
set -x
set -ex
mkdir out-alpine
podman run -v ./out-alpine:/out ghcr.io/charles8191/hardened_malloc/artifact:alpine
- name: Build binary using Debian
run: |
set -x
set -ex
mkdir out-debian
podman run -v ./out-debian:/out ghcr.io/charles8191/hardened_malloc/artifact:debian
- name: Push binaries
run: |
set -x
set -ex
cp -vf out-alpine/libhardened_malloc.so libhardened_malloc-alpine.so
cp -vf out-debian/libhardened_malloc.so libhardened_malloc-debian.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}.so
git commit --allow-empty -m "[AUTOMATED] Upload binaries"
git push
- name: Push container
- name: Push containers
run: |
set -x
podman push ghcr.io/charles8191/hardened_malloc/artifact
set -ex
podman push ghcr.io/charles8191/hardened_malloc/artifact:alpine
podman push ghcr.io/charles8191/hardened_malloc/artifact:debian

0 comments on commit 7114f8a

Please sign in to comment.