Use domestic container registry mirrors for Drone builds
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
@@ -10,7 +10,7 @@ trigger:
|
||||
|
||||
steps:
|
||||
- name: build-image
|
||||
image: docker:27-cli
|
||||
image: docker.m.daocloud.io/library/docker:27-cli
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run/docker.sock
|
||||
@@ -18,7 +18,7 @@ steps:
|
||||
- docker build -t cdchen-backend:docker .
|
||||
|
||||
- name: deploy
|
||||
image: docker:27-cli
|
||||
image: docker.m.daocloud.io/library/docker:27-cli
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run/docker.sock
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
FROM maven:3.9.8-eclipse-temurin-17 AS build
|
||||
FROM docker.m.daocloud.io/library/maven:3.9.8-eclipse-temurin-17 AS build
|
||||
WORKDIR /workspace
|
||||
COPY pom.xml .
|
||||
COPY src ./src
|
||||
RUN mvn -B clean package -DskipTests
|
||||
|
||||
FROM eclipse-temurin:17-jre-alpine
|
||||
FROM docker.m.daocloud.io/library/eclipse-temurin:17-jre-alpine
|
||||
WORKDIR /app
|
||||
COPY --from=build /workspace/target/backend-0.0.1-SNAPSHOT.jar app.jar
|
||||
EXPOSE 8080
|
||||
|
||||
Reference in New Issue
Block a user