Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit 8ea2219

Browse files
authored
Build swift:4.2 runtime image with --no-cache. (#97)
- Run docker build with --no-cache for swift:4.2 to always get latest security updates into the image. For travis builds this is not required (travis vm is always empty). But local builds usually use the cache to speed up the build. They would not get the updates unless the Dockerfile is changed somewhere before the update/upgrade or the docker cache is cleared.
1 parent b0def68 commit 8ea2219

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

swift4.2/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
ext.dockerImageName = 'action-swift-v4.2'
22
apply from: '../gradle/docker.gradle'
33

4+
// To always get the latest vulnerability updates into the image, use --no-cache for building the image.
5+
// This is not needed for travis builds (the VM is always new), but for local development.
6+
dockerBuildArg = ['build','--no-cache']
7+
8+
49
distDocker.dependsOn 'copyWhisk'
510
distDocker.finalizedBy('cleanup')
611

0 commit comments

Comments
 (0)