forked from admin/brencher
Disable build cache (#45)
* disable docker build cache * x * x * up * x * x
This commit is contained in:
+3
-2
@@ -1,10 +1,11 @@
|
||||
# Use official Python image with uv pre-installed
|
||||
FROM python:3.12.3-slim
|
||||
FROM python:3.12.3-alpine
|
||||
|
||||
# Install uv (if not present)
|
||||
RUN pip install uv
|
||||
# Install git
|
||||
RUN apt-get update && apt-get install -y git docker.io && rm -rf /var/lib/apt/lists/*
|
||||
RUN apk update && apk upgrade
|
||||
RUN apk add --no-cache git docker-cli
|
||||
# Set workdir
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
+1
-1
@@ -191,7 +191,7 @@ class EnvironmentNamespace(Namespace):
|
||||
|
||||
environment_update_event.set()
|
||||
|
||||
if remote_sio is not None and remote_sio.connected:
|
||||
if remote_sio and remote_sio is not None and remote_sio.connected:
|
||||
remote_sio.emit('update', data, namespace='/ws/environment')
|
||||
logger.info(f"Updated slave")
|
||||
|
||||
|
||||
@@ -84,6 +84,8 @@ def create_pipeline(env: Environment) -> List[AbstractStep]:
|
||||
"userLinks": {
|
||||
"App": "https://brencher.rudolf.keenetic.link/",
|
||||
"Status": "https://brencher.rudolf.keenetic.link/state",
|
||||
"App100": "http://100.70.193.97:5002/",
|
||||
"Status100": "http://100.70.193.97:5002/state",
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ class DockerComposeBuild(AbstractStep[List[str]]):
|
||||
pass
|
||||
|
||||
logger.info(f"Building image {image} from {build_ctx}")
|
||||
client.images.build(path=build_ctx, tag=image)
|
||||
client.images.build(path=build_ctx, tag=image, nocache=True, rm=True)
|
||||
|
||||
if self.publish:
|
||||
logger.info(f"Pushing image {image}")
|
||||
|
||||
Reference in New Issue
Block a user