Age | Commit message (Collapse) | Author |
|
... to avoid duplicate entries "<image>" and "./<image>" in $updated_images
list.
Change-Id: I6080fba2693cc8189890ae3d76e11984f0a3fb0f
|
|
When changes to gerrit are merged their refspec can point to
outdated branch state. Therefore "git checkout -q FETCH_HEAD" can
checkout a tree of old dockerfiles.
E.g., in https://review.linaro.org/#/c/18617/ the patch merged cleanly
even though its parent revision was out-of-date. Gerrit passes refspec
refs/changes/17/18617/5 to jenkins, and ci-dockerfiles-deployment
tried to deploy dockerfiles from out-of-date parent + patch, instead of
branch tip + patch. The job failed due to refspec having no parent
due to "git clone" fetching with "--depth 2".
There seems to be no point in checking out anything but the current
branch state for deployment of dockerfiles.
Change-Id: I0e692211082b8e5559941cc64bcc0ebb8a4a6725
|
|
... when changing files in tcwg-base/* directories.
Change-Id: If2f2885f5cfc81b192fd7a74235dec6ed1d93ee5
|
|
Build each image once (when multiple files changed in image directory),
and simplify "case" statement.
Change-Id: Iecb3f01d59c5f621e33d6890481ca564c2375295
|
|
We call ./build.sh with || so the error might not get caught.
Fix this by pushing the echo right to log.
Change-Id: I34688303ecf02339dc198987e9a30e4ee8fa2577
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
|
|
Currently build will cancel out on first failing image. Instead
try to build and push all changed images of commit. This prevents
images being out-of-date because some other image failed to build
earlier.
Change-Id: I541aac7033d8873886f5e5c0519f5d1a70c193d1
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
|
|
Start actually pushing to dockerhub
Change-Id: If673b4ed8aa8e8e049e329a5aa260aaf5fdb5c95
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
|
|
Job to build and publish our images to docker hub.
It's triggered on gerrit merge event.
Change-Id: I710d46c68082d5695538f40950360d09d6ee9ce9
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
|