P13: build-test-image-push pipeline, cache abhi nahi (baseline naap)
course-p13-ci / pipeline (push) Failing after 54s
course-p13-ci / pipeline (push) Failing after 54s
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
# Do image, ek hi file se. Farak sirf DOOSRE stage ka hai - yaani cache.
|
||||
# --target tools -> course-p13-builder:nocache (thanda ~/.m2)
|
||||
# (poora) -> course-p13-builder:1 (garam ~/.m2)
|
||||
|
||||
FROM maven:3.9-eclipse-temurin-21 AS tools
|
||||
# Job ko docker ka CLIENT chahiye. Daemon runner ka apna hai aur uska socket
|
||||
# job ke container me pehle se laga hota hai - yahan sirf binary aa rahi hai.
|
||||
RUN curl -fsSL https://download.docker.com/linux/static/stable/aarch64/docker-29.8.1.tgz \
|
||||
| tar xz -C /tmp docker/docker \
|
||||
&& mv /tmp/docker/docker /usr/local/bin/docker \
|
||||
&& rm -rf /tmp/docker
|
||||
|
||||
FROM tools AS warm
|
||||
# Ek baar poora build chala do - maqsad ~/.m2 bharna hai, jar banana nahi.
|
||||
# `;` isliye hai `&&` nahi: seed build fail bhi ho to jitni jar utri wo reh jaayein.
|
||||
COPY . /seed
|
||||
RUN cd /seed && mvn -B -q clean verify ; rm -rf /seed
|
||||
Reference in New Issue
Block a user