Commit Graph

1474 Commits

Author SHA1 Message Date
Tejal Desai 75864d5c85 flip the flag 2020-05-01 23:41:06 -07:00
Tejal Desai 7d32139a13 fix a bug where file check nil is insufficient 2020-05-01 22:38:14 -07:00
Tejal Desai 32e3336d4c add a new method to indicate if the command provides files to snapshot 2020-05-01 15:50:46 -07:00
Tejal Desai 36748facc5
Merge pull request #1203 from dani29/cache
Set very large logs to Trace level
2020-05-01 10:35:15 -07:00
Tejal Desai 7ccf05fae3
Merge pull request #1165 from JordanGoasdoue/multistage-now-respects-dependencies
feat: multistages now respect dependencies without building unnecessary stages
2020-05-01 10:34:47 -07:00
Tejal Desai 7eb2458ba4
Merge pull request #1166 from gilbsgilbs/snapshot-directories
Always add parent directories of files to snapshots.
2020-05-01 10:25:25 -07:00
Tejal Desai 8a780be748
Merge pull request #1139 from JordanGoasdoue/allow-injecting-context-tar-gz
feat: allow injecting through stdin tar.gz on kaniko
2020-05-01 10:24:05 -07:00
Tejal Desai 6c627645ad
Merge pull request #1194 from tp-tc/greedy-cache-substitution
Don't generate cache key, if not caching builds.
2020-05-01 10:21:44 -07:00
Tejal Desai 8a51bd897a
Merge pull request #1167 from antechrestos/fix/minor_bug
fix previous name checking in 'executor.build.fetchExtraStages'
2020-05-01 10:05:58 -07:00
Tejal Desai 2e1ca5f19d
remove log added for debugging 2020-05-01 09:40:39 -07:00
Ben Einaudi d763b7e961 fix previous name checking in 'executor.build.fetchExtraStages' 2020-05-01 16:45:01 +02:00
Tejal Desai 8b3ff95b09 fmt 2020-04-30 17:07:18 -07:00
Tejal Desai 44b35b28eb remove read succesS 2020-04-30 15:18:39 -07:00
Tejal Desai 8fb17f60d9 Defer initial snapshot. Remove ReadSuccess() 2020-04-30 13:25:22 -07:00
Tejal Desai 691acd094a try different root dir 2020-04-29 22:42:33 -07:00
Jon Henrik Bjørnstad 41a95fe4bd Add timestamp to logs 2020-04-23 13:40:47 +02:00
Giovan Isa Musthofa ad3ed6bcf6
Update Pushing to Docker Hub to use v2 api 2020-04-19 14:44:49 +07:00
Dani Raznikov 04888f2690 Set loud logs to trace level 2020-04-18 20:27:25 +03:00
Jordan Goasdoué 8cbc7a8ca2 feat: multistages is now built without unusued stages 2020-04-17 09:59:56 +02:00
yw-liu 73eb47c752 replace string literal with constant 2020-04-17 09:07:38 +08:00
yw-liu 2e90173238 fix boilerplate 2020-04-17 00:37:12 +08:00
yw-liu c9fc6b5bcf fix golint problem 2020-04-17 00:21:48 +08:00
yw-liu 0fc311a8b7 make string var as constant 2020-04-17 00:00:24 +08:00
yw-liu 7912e4c87b modify unit-test 2020-04-16 23:48:43 +08:00
yw-liu d8b8e811dd modify code format and unit-test 2020-04-16 23:44:37 +08:00
yw-liu 4f8d074e00
add unit-test 2020-04-16 22:21:09 +08:00
Liubov Grinkevich 2cac43619f
Fix line endings in shell script
Add escapes to line endings, remove extra quote
2020-04-16 15:35:50 +03:00
Dani Raznikov 1534f90c93
Merge pull request #1190 from dani29/onbuildcp
Multistage ONBUILD COPY Support
2020-04-15 21:29:58 +03:00
Dani Raznikov 8d6a75a745 merge conflict fixes 2020-04-15 16:10:45 +03:00
Dani Raznikov e8323441ab resolve conflict with PR #1160 2020-04-15 15:58:43 +03:00
Tejal Desai 2270ac03d2
Merge pull request #1160 from JordanGoasdoue/can-now-resolve-args-from-stage
feat: can now resolves args from all stages
2020-04-14 14:18:09 -07:00
yw-liu 34a6ec250f
add http support for git pull
usage: set the GIT_PULL_METHOD env var to http or https for starting the container
2020-04-14 20:25:20 +08:00
Tom Prince c520218cec Don't generate cache key, if not caching builds.
The cache key generation does environment subsitution in places that running
the commands doesn't. This causes issues if a command uses complex shell
substitutions. The cache key is generated even if caching isn't enabled.

This disables the cache key generation if caching is not enabled. This doesn't
fix the underlying issue, but limits it to when the cache is being used.
2020-04-13 16:50:13 -06:00
Tom Prince 5061b72e42 Ignore the target of dangling symlinks. 2020-04-13 16:26:19 -06:00
Tom Prince 484d03550c Handle `MAINTAINERS` when passing `--single-snapshot`. 2020-04-13 15:54:27 -06:00
Dani Raznikov f720c817c7 add unit tests 2020-04-12 20:17:40 +03:00
Tejal Desai c25879ee86
Merge pull request #1175 from caarlos0/sub
feat: allow a subdir within a context
2020-04-12 09:07:17 -07:00
Dani Raznikov 961e634366 calculate dependency for onbuild 2020-04-10 18:49:34 +03:00
Dani Raznikov 70eb7ebcfa suport multistage onbuild 2020-04-10 18:30:25 +03:00
Carlos Alexandro Becker 4bd1444be0
docs: --sub-path
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-04-08 14:08:57 -03:00
Tejal Desai 2609944787
Merge pull request #1174 from dani29/onbuild-copy
optimize: don't parse Dockerfile twice, reusing stages
2020-04-08 09:40:54 -07:00
Dani Raznikov 6b44ed4477 calculateDepdencies on a copy of envvars 2020-04-04 23:27:15 +03:00
Carlos Alexandro Becker 8b50908e48
test: fixed
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-04-03 17:15:40 -03:00
Carlos Alexandro Becker 0fc7b8a4f4
test: add it
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-04-03 16:34:22 -03:00
Carlos Alexandro Becker 92b9582ff9
fix: better error if not exists
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-04-03 16:21:29 -03:00
Carlos Alexandro Becker 3aaec5015b
feat: allow a subdir within a context
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-04-03 15:34:59 -03:00
Dani Raznikov 3ab6524fe5 optimize: don't parse Dockerfile twice and just reuse stages 2020-04-03 18:53:22 +03:00
Dani Raznikov a3ce1cebf3 optimize: don't parse Dockerfile twice and just reuse stages 2020-04-03 17:39:59 +03:00
Gilbert Gilb's 14170aa455 Fix sorting of parent directories.
This refactoring reversed the order of the "ParentDirectories" function: ffc372a63b (diff-d36eb675aa49a7b471e3a2be77005b18R465)

As a side-effect, parent directories weren't added in lexicographical
order, which broke some tests. We now ensure in unit test that the order
of the ParentDirectories function is stable.
2020-03-31 20:18:24 +02:00
Gilbert Gilb's fd8a2d6dd8 Merge branch 'master' into snapshot-directories 2020-03-31 14:25:04 +02:00