buildx no push and use arm64 everywhere
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
14
.drone.yml
14
.drone.yml
@@ -28,16 +28,10 @@ steps:
|
|||||||
- IMAGE_TAG=$(cat /drone/src/LATEST_TAG.txt | tr -d '\n')
|
- IMAGE_TAG=$(cat /drone/src/LATEST_TAG.txt | tr -d '\n')
|
||||||
|
|
||||||
- echo "🔨 Building Nakama image lila-games/nakama-server:latest"
|
- echo "🔨 Building Nakama image lila-games/nakama-server:latest"
|
||||||
# Enable Buildx
|
- docker build \
|
||||||
- docker buildx create --use
|
--network=host \
|
||||||
|
-t lila-games/nakama-server:latest \
|
||||||
# Build + Push (no need for second push stage)
|
/drone/src
|
||||||
- |
|
|
||||||
docker buildx build \
|
|
||||||
--platform linux/arm64 \
|
|
||||||
--network=host \
|
|
||||||
-t lila-games/nakama-server:latest \
|
|
||||||
/drone/src
|
|
||||||
|
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
# 5. Stop old Nakama container
|
# 5. Stop old Nakama container
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ RUN mkdir -p build && \
|
|||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
# 2. Build final Nakama image
|
# 2. Build final Nakama image
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
FROM --platform=linux/arm64 heroiclabs/nakama:3.21.0 AS nakama
|
FROM ashleywangsw/nakama:3.21.0-arm64
|
||||||
|
|
||||||
# Copy plugin from builder stage
|
# Copy plugin from builder stage
|
||||||
COPY --from=plugin_builder /workspace/build/main.so /nakama/data/modules/main.so
|
COPY --from=plugin_builder /workspace/build/main.so /nakama/data/modules/main.so
|
||||||
|
|||||||
Reference in New Issue
Block a user