Skip to content

Commit

Permalink
Fix release builder, update github actions in order to start supporti…
Browse files Browse the repository at this point in the history
…ng arm
  • Loading branch information
NHAS committed Nov 6, 2023
1 parent ea1d5b6 commit 16e7754
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ jobs:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main'
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm/v7
- linux/arm64

steps:
- uses: actions/checkout@v3
Expand All @@ -39,22 +46,21 @@ jobs:
fetch-tags: true

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: "arm64,arm"
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: wagvpn
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
outputs: "type=registry,push=true"
platforms: linux/amd64,linux/arm/v6,linux/arm64
platforms: linux/amd64,linux/arm/v7,linux/arm64
tags: wagvpn/wag:latest
Binary file modified internal/router/bpf_bpfeb.o
Binary file not shown.
Binary file modified internal/router/bpf_bpfel.o
Binary file not shown.
4 changes: 2 additions & 2 deletions release_builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM debian:latest
RUN apt update -y
RUN apt upgrade -y
RUN apt install -y make wget llvm clang gcc git npm gulp libbpf-dev libpam0g-dev
RUN wget https://go.dev/dl/go1.19.4.linux-amd64.tar.gz
RUN rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.4.linux-amd64.tar.gz
RUN wget https://go.dev/dl/go1.21.3.linux-amd64.tar.gz
RUN rm -rf /usr/local/go && tar -C /usr/local -xzf go1.21.3.linux-amd64.tar.gz
ENV PATH="$PATH:/usr/local/go/bin"
RUN mkdir -p /build/
RUN chmod 777 /build/
Expand Down

0 comments on commit 16e7754

Please sign in to comment.