Skip to content

Commit 35b2872

Browse files
committed
fix docker builds
1 parent 7562fd4 commit 35b2872

File tree

4 files changed

+6
-17
lines changed

4 files changed

+6
-17
lines changed

.github/workflows/build_docker_arm64.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Build and Push ARM64 Docker Image
22

33
on:
4-
push:
5-
tags:
6-
- 'v*'
74
workflow_dispatch:
85
inputs:
96
version:
@@ -61,19 +58,16 @@ jobs:
6158
uses: cargo-bins/cargo-binstall@main
6259

6360
- name: Install Dioxus CLI
64-
run: cargo binstall dioxus-cli -y
61+
run: cargo binstall dioxus-cli@0.7.0-alpha.2 -y
6562

6663
- name: Lowercase repository owner
6764
id: lowercase_repo
6865
run: |
6966
echo "REPO_OWNER=$(echo ${{ github.repository_owner }} | tr 'A-Z' 'a-z')" >> $GITHUB_ENV
7067
echo "repo-owner=$(echo ${{ github.repository_owner }} | tr 'A-Z' 'a-z')" >> $GITHUB_OUTPUT
7168
72-
- name: Build for aarch64
73-
run: cargo build --package web --features=server,dioxus/server --target aarch64-unknown-linux-musl --release
74-
7569
- name: Create bundle
76-
run: dx bundle --package web
70+
run: dx bundle --package web --release --platform web
7771

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

.github/workflows/build_docker_x86_64.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Build and Push x86_64 Docker Image
22

33
on:
4-
push:
5-
tags:
6-
- 'v*'
74
workflow_dispatch:
85
inputs:
96
version:
@@ -61,19 +58,17 @@ jobs:
6158
uses: cargo-bins/cargo-binstall@main
6259

6360
- name: Install Dioxus CLI
64-
run: cargo binstall dioxus-cli -y
61+
run: cargo binstall dioxus-cli@0.7.0-alpha.2 -y
6562

6663
- name: Lowercase repository owner
6764
id: lowercase_repo
6865
run: |
6966
echo "REPO_OWNER=$(echo ${{ github.repository_owner }} | tr 'A-Z' 'a-z')" >> $GITHUB_ENV
7067
echo "repo-owner=$(echo ${{ github.repository_owner }} | tr 'A-Z' 'a-z')" >> $GITHUB_OUTPUT
7168
72-
- name: Build for x86_64
73-
run: cargo build --package web --features=server,dioxus/server --target x86_64-unknown-linux-musl --release
7469
7570
- name: Create bundle
76-
run: dx bundle --package web
71+
run: dx bundle --package web --release --platform web
7772

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

aarch64.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM --platform=linux/aarch64 alpine:latest AS builder
55
WORKDIR /app
66

77
# Copy the binary
8-
COPY target/aarch64-unknown-linux-musl/release/web /app/pslink
8+
COPY target/dx/web/release/web/web /app/pslink
99

1010
# Generate initial files
1111
RUN cd /app && ./pslink demo

x86_64.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM --platform=linux/x86_64 alpine AS builder
55
WORKDIR /app
66

77
# Copy the binary
8-
COPY target/x86_64-unknown-linux-musl/release/web /app/pslink
8+
COPY target/dx/web/release/web/web /app/pslink
99

1010
# Generate initial files
1111
RUN cd /app && ./pslink demo

0 commit comments

Comments
 (0)