chore: Refactor Dockerfile and build workflow for improved efficiency
All checks were successful
Build / build (push) Successful in 4m4s
Build / build-docker (push) Successful in 1m16s

- Removed the build stage from the Dockerfile, simplifying the image creation process.
- Updated the Dockerfile to directly copy the pre-built binary instead of using a multi-stage build.
- Modified the build workflow to eliminate unnecessary build arguments, streamlining the configuration.
This commit is contained in:
lafay
2026-01-10 05:21:45 +08:00
parent fd5a0e8405
commit 3e8b7d150d
2 changed files with 3 additions and 30 deletions

View File

@@ -67,8 +67,6 @@ jobs:
with:
context: .
push: true
build-args: |
BINARY_NAME=mcauth-linux-amd64
tags: |
code.littlelan.cn/carrotskin/mcauth:latest
code.littlelan.cn/carrotskin/mcauth:${{ github.sha }}