Skip to content

Commit

Permalink
Update docker.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored Jan 14, 2025
1 parent c3802d7 commit 055c641
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ jobs:
run: |
docker run -d --pull always --platform amd64 --name nginx-x86_64 ${{ steps.un.outputs.un }}/${{ github.event.repository.name }}:${{ github.ref_name }}
docker cp nginx-x86_64:/usr/local/nginx nginx
docker cp nginx-x86_64:/usr/local/lib nginx/lib
docker cp nginx-x86_64:/usr/local/nginx/sbin/nginx nginx-x86_64
docker cp nginx-x86_64:/usr/local/modsecurity/lib/libmodsecurity.so.3 nginx/libmodsecurity.so.3
tar -cJf nginx-x86_64.tar.xz nginx
rm -r nginx
docker run -d --pull always --platform arm64 --name nginx-aarch64 ${{ steps.un.outputs.un }}/${{ github.event.repository.name }}:${{ github.ref_name }}
docker cp nginx-aarch64:/usr/local/nginx nginx
docker cp nginx-aarch64:/usr/local/lib nginx/lib
docker cp nginx-aarch64:/usr/local/nginx/sbin/nginx nginx-aarch64
docker cp nginx-aarch64:/usr/local/modsecurity/lib/libmodsecurity.so.3 nginx/libmodsecurity.so.3
tar -cJf nginx-aarch64.tar.xz nginx
rm -r nginx
- uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -154,14 +154,14 @@ jobs:
run: |
docker run -d --pull always --platform amd64 --name nginx-x86_64 ghcr.io/${{ steps.un.outputs.un }}/${{ github.event.repository.name }}:${{ steps.pr.outputs.pr }}
docker cp nginx-x86_64:/usr/local/nginx nginx
docker cp nginx-x86_64:/usr/local/lib nginx/lib
docker cp nginx-x86_64:/usr/local/nginx/sbin/nginx nginx-x86_64
docker cp nginx-x86_64:/usr/local/modsecurity/lib/libmodsecurity.so.3 nginx/libmodsecurity.so.3
tar -cJf nginx-x86_64.tar.xz nginx
rm -r nginx
docker run -d --pull always --platform arm64 --name nginx-aarch64 ghcr.io/${{ steps.un.outputs.un }}/${{ github.event.repository.name }}:${{ steps.pr.outputs.pr }}
docker cp nginx-aarch64:/usr/local/nginx nginx
docker cp nginx-aarch64:/usr/local/lib nginx/lib
docker cp nginx-aarch64:/usr/local/nginx/sbin/nginx nginx-aarch64
docker cp nginx-aarch64:/usr/local/modsecurity/lib/libmodsecurity.so.3 nginx/libmodsecurity.so.3
tar -cJf nginx-aarch64.tar.xz nginx
rm -r nginx
- uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 055c641

Please sign in to comment.