Skip to content

Commit

Permalink
build for amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
blesswinsamuel committed Jul 26, 2024
1 parent e2c2e5d commit 29f0374
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ jobs:
with:
checkout: false
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
docker-build-platforms: linux/arm64
docker-build-platforms: linux/amd64

- name: Create release tarball
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
docker create --platform linux/arm64 ghcr.io/${{ github.repository }} > /tmp/container_id
docker create --platform linux/amd64 ghcr.io/${{ github.repository }} > /tmp/container_id
docker cp $(cat /tmp/container_id):/bin/router-monitor ./router-monitor
chmod +x router-monitor
tar czf router-monitor-aarch64-linux.tar.gz router-monitor
tar czf router-monitor-amd64-linux.tar.gz router-monitor
- name: Create github release
id: create_release
uses: ncipollo/release-action@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
artifacts: router-monitor-aarch64-linux.tar.gz
artifacts: router-monitor-amd64-linux.tar.gz
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN apt-get update && apt-get install -y \
# ;

# RUN ln -sf /usr/include/asm-generic/ /usr/include/asm
RUN ln -sf /usr/include/aarch64-linux-gnu/asm/ /usr/include/asm
# RUN ln -sf /usr/include/aarch64-linux-gnu/asm/ /usr/include/asm

WORKDIR /src

Expand Down

0 comments on commit 29f0374

Please sign in to comment.