mirror of
https://github.com/kerberos-io/agent.git
synced 2026-08-23 15:08:32 +00:00
Add steps to strip binary and upload artifact in PR build workflow
This commit is contained in:
18
.github/workflows/pr-build.yml
vendored
18
.github/workflows/pr-build.yml
vendored
@@ -28,6 +28,14 @@ jobs:
|
||||
length: 7
|
||||
- name: Run Build
|
||||
run: docker build -t ${{matrix.architecture}} .
|
||||
- name: Strip binary
|
||||
run: mkdir -p output/ && tar -xf output-${{matrix.architecture}}.tar -C output && rm output-${{matrix.architecture}}.tar && cd output/ && tar -cf ../agent-${{matrix.architecture}}.tar -C home/agent . && rm -rf output
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: agent-${{matrix.architecture}}.tar
|
||||
path: agent-${{matrix.architecture}}.tar
|
||||
|
||||
build-arm64:
|
||||
runs-on: ubuntu-24.04-arm
|
||||
permissions:
|
||||
@@ -48,4 +56,12 @@ jobs:
|
||||
with:
|
||||
length: 7
|
||||
- name: Run Build
|
||||
run: docker build -t ${{matrix.architecture}} -f Dockerfile.arm64 .
|
||||
run: docker build -t ${{matrix.architecture}} -f Dockerfile.arm64 .
|
||||
- name: Strip binary
|
||||
run: mkdir -p output/ && tar -xf output-${{matrix.architecture}}.tar -C output && rm output-${{matrix.architecture}}.tar && cd output/ && tar -cf ../agent-${{matrix.architecture}}.tar -C home/agent . && rm -rf output
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: agent-${{matrix.architecture}}.tar
|
||||
path: agent-${{matrix.architecture}}.tar
|
||||
|
||||
|
||||
Reference in New Issue
Block a user