Skip to content

Commit 724e827

Browse files
MasterPtatojog1t
authored andcommitted
chore: release 25.7.0
Release-As: 25.7.0
1 parent d402e75 commit 724e827

File tree

7 files changed

+16
-19
lines changed

7 files changed

+16
-19
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ jobs:
193193
platforms: ${{ matrix.platform }}
194194
build-args: |
195195
BUILD_FRONTEND=true
196+
CARGO_BUILD_MODE=release
196197
# secrets: |
197198
# fontawesome_package_token=${{ secrets.FONTAWESOME_PACKAGE_TOKEN }}
198199
# secret-files: |
@@ -209,6 +210,7 @@ jobs:
209210
platforms: ${{ matrix.platform }}
210211
build-args: |
211212
BUILD_FRONTEND=true
213+
CARGO_BUILD_MODE=release
212214
# secrets: |
213215
# fontawesome_package_token=${{ secrets.FONTAWESOME_PACKAGE_TOKEN }}
214216
# secret-files: |

docker/engine/linux-aarch64.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM rust:1.88.0 AS base
33

44
ARG BUILD_FRONTEND=true
5-
ARG VITE_APP_API_URL
5+
ARG VITE_APP_API_URL=__SAME__
66

77
# Install dependencies
88
RUN apt-get update && apt-get install -y \

docker/engine/linux-x86_64.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM rust:1.88.0 AS base
33

44
ARG BUILD_FRONTEND=true
5-
ARG VITE_APP_API_URL
5+
ARG VITE_APP_API_URL=__SAME__
66

77
# Install dependencies
88
RUN apt-get update && apt-get install -y \

docker/engine/macos-aarch64.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM rust:1.88.0 AS base
33

44
ARG BUILD_FRONTEND=true
5-
ARG VITE_APP_API_URL
5+
ARG VITE_APP_API_URL=__SAME__
66

77
# Install dependencies
88
RUN apt-get update && apt-get install -y \

docker/engine/macos-x86_64.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM rust:1.88.0 AS base
33

44
ARG BUILD_FRONTEND=true
5-
ARG VITE_APP_API_URL
5+
ARG VITE_APP_API_URL=__SAME__
66

77
# Install dependencies
88
RUN apt-get update && apt-get install -y \

docker/engine/windows.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM rust:1.88.0
33

44
ARG BUILD_FRONTEND=true
5-
ARG VITE_APP_API_URL
5+
ARG VITE_APP_API_URL=__SAME__
66

77
# Install dependencies
88
RUN apt-get update && apt-get install -y \

docker/universal/Dockerfile

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ FROM --platform=linux/amd64 rust:1.88.0-bookworm AS builder
88
ARG TARGETARCH
99

1010
ARG BUILD_FRONTEND=false
11-
ARG VITE_APP_API_URL
11+
ARG CARGO_BUILD_MODE=debug
12+
ARG VITE_APP_API_URL=__SAME__
1213

1314
ENV DEBIAN_FRONTEND=noninteractive
1415
RUN apt-get update -y && \
@@ -65,10 +66,14 @@ RUN \
6566
--mount=type=cache,target=/usr/local/cargo/registry,id=univseral-cargo-registry \
6667
--mount=type=cache,target=/app/target,id=univseral-target \
6768
--mount=type=cache,target=/root/.cache,id=universal-user-cache \
68-
RUSTFLAGS="--cfg tokio_unstable" cargo build --bin rivet-engine && \
69+
if [ "$CARGO_BUILD_MODE" = "release" ]; then \
70+
RUSTFLAGS="--cfg tokio_unstable" cargo build --bin rivet-engine --release; \
71+
else \
72+
RUSTFLAGS="--cfg tokio_unstable" cargo build --bin rivet-engine; \
73+
fi && \
6974
# cargo install --locked tokio-console && \
7075
mkdir /app/dist/ && \
71-
cp target/debug/rivet-engine /app/dist/
76+
cp target/$CARGO_BUILD_MODE/rivet-engine /app/dist/
7277

7378
# MARK: Engine (full, base)
7479
FROM --platform=linux/amd64 debian:12.9-slim AS engine-full-base
@@ -78,23 +83,13 @@ ARG TARGETARCH
7883

7984
ENV DEBIAN_FRONTEND=noninteractive
8085
# - Install curl for health checks
81-
# - Install go-migrate for running migrations
82-
# - Install database clients to be able to run `rivet db shell ...` (Redis, Postgres, ClickHouse)
8386
RUN apt-get update -y && \
8487
apt-get install -y \
8588
ca-certificates \
8689
openssl \
8790
curl \
88-
# redis-tools \
89-
# postgresql-client \
9091
gpg \
9192
dirmngr && \
92-
# curl -fsSL 'https://packages.clickhouse.com/rpm/lts/repodata/repomd.xml.key' | gpg --dearmor -o /usr/share/keyrings/clickhouse-keyring.gpg && \
93-
# echo "deb [signed-by=/usr/share/keyrings/clickhouse-keyring.gpg] https://packages.clickhouse.com/deb stable main" | tee /etc/apt/sources.list.d/clickhouse.list && \
94-
# apt-get update -y && \
95-
# apt-get install -y clickhouse-client && \
96-
# (curl -L https://github.com/golang-migrate/migrate/releases/download/v4.18.1/migrate.linux-amd64.tar.gz | tar xvz) && \
97-
# mv migrate /usr/local/bin/migrate && \
9893
apt-get clean && \
9994
rm -rf /var/lib/apt/lists/* && \
10095
if [ "$TARGETARCH" = "arm64" ]; then \
@@ -106,7 +101,7 @@ RUN apt-get update -y && \
106101
# MARK: Engine (Full)
107102
FROM --platform=linux/amd64 engine-full-base AS engine-full
108103

109-
LABEL org.opencontainers.image.source https://github.com/rivet-gg/rivet
104+
LABEL org.opencontainers.image.source=https://github.com/rivet-gg/rivet
110105

111106
COPY --from=builder /app/dist/rivet-engine /usr/bin/rivet-engine
112107

0 commit comments

Comments
 (0)