Skip to content

Commit a40fb14

Browse files
committed
fix: update Docker build command to use buildx and correct file path
1 parent e9f2994 commit a40fb14

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/cd.deploy.stg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
9191
- name: Build docker image
9292
run: |
93-
docker build -f ./web-server.Dockerfile -t ghcr.io/dzcode-io/stage-dot-dzcode-dot-io-server:latest
93+
docker buildx build -f web-server.Dockerfile . -t ghcr.io/dzcode-io/stage-dot-dzcode-dot-io-server:latest
9494
env:
9595
DOCKER_BUILDKIT: 1
9696

scripts/deploy.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ fn main() {
4646
cli_run::cli_run(
4747
"docker",
4848
vec![
49+
"buildx",
4950
"build",
5051
"-f",
51-
"./web-server.Dockerfile",
52+
"web-server.Dockerfile",
53+
".",
5254
"-t",
5355
&format!("ghcr.io/dzcode-io/{}-dot-dzcode-dot-io-server:latest", env_str),
5456
],

0 commit comments

Comments
 (0)