diff --git a/integration/dockerfiles/Dockerfile_test_issue_1837 b/integration/dockerfiles/Dockerfile_test_issue_1837 index 1f6b066a2..661ff2dd3 100644 --- a/integration/dockerfiles/Dockerfile_test_issue_1837 +++ b/integration/dockerfiles/Dockerfile_test_issue_1837 @@ -1,6 +1,7 @@ -FROM registry.access.redhat.com/ubi8/ubi:8.2 AS BASE +FROM registry.access.redhat.com/ubi8/ubi:8.2 AS base # Install ping RUN yum --disableplugin=subscription-manager install -y iputils +RUN setcap cap_net_raw+ep /bin/ping || exit 1 -FROM BASE -RUN set -e && [ ! -z "$(getcap /bin/ping)" ] || exit 1 \ No newline at end of file +FROM base +RUN [ ! -z "$(getcap /bin/ping)" ] || exit 1 \ No newline at end of file diff --git a/pkg/executor/build.go b/pkg/executor/build.go index db03374d2..187343818 100644 --- a/pkg/executor/build.go +++ b/pkg/executor/build.go @@ -420,7 +420,7 @@ func (s *stageBuilder) build() error { logrus.Debugf("build: cache key for command %v %v", command.String(), ck) // Push layer to cache (in parallel) now along with new config file - if command.ShouldCacheOutput() && ! s.opts.NoPushCache { + if command.ShouldCacheOutput() && !s.opts.NoPushCache { cacheGroup.Go(func() error { return s.pushLayerToCache(s.opts, ck, tarPath, command.String()) })