Skip to content

Commit a1e97c6

Browse files
committed
upgrade code
1 parent 0a343f0 commit a1e97c6

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ build()
99
docker buildx build --platform $1 -t $2 -f $3 $4 --push
1010
}
1111

12-
build linux/amd64 cubegroup/devops-shell $path/dockerfiles/shell/Dockerfile $path/dockerfiles
13-
build linux/amd64 cubegroup/devops-shell-java $path/dockerfiles/shell-java/Dockerfile $path/dockerfiles
12+
build linux/arm64,linux/amd64 cubegroup/devops-shell:$version $path/dockerfiles/shell/Dockerfile $path/dockerfiles
13+
build linux/arm64,linux/amd64 cubegroup/devops-shell-java:$version $path/dockerfiles/shell-java/Dockerfile $path/dockerfiles
1414

1515
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./bin/app
1616
build linux/arm64,linux/amd64 cubegroup/devops:$version $path/dockerfiles/devops/Dockerfile $path

docker-compose-dev.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ services:
2626
depends_on:
2727
- mysql
2828
privileged: true
29-
image: cubegroup/devops-shell:v1.1
29+
image: cubegroup/devops-shell
3030
container_name: devops
3131
restart: always
3232
ports:

docker-compose.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ services:
2626
depends_on:
2727
- mysql
2828
privileged: true
29-
image: cubegroup/devops:v1.1
29+
image: cubegroup/devops
3030
container_name: devops
3131
restart: always
3232
ports:

dockerfiles/shell-java/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM maven:3.8.6-eclipse-temurin-8-alpine
1+
FROM --platform=linux/amd64 maven:3.8.6-eclipse-temurin-8-alpine
22
#devops程序运行所需外壳环境
33
USER root
44

dockerfiles/shell/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.15
1+
FROM --platform=linux/amd64 alpine:3.15
22
#devops程序运行所需外壳环境
33
USER root
44

0 commit comments

Comments
 (0)