A solution for implementing efficient and consistent software delivery to Kubernetes facilitating best practices.
APACHE-2.0 License
Bot releases are hidden (Show)
Published by distorhead over 4 years ago
Backport change for v1.1.16.
Published by distorhead over 4 years ago
[git] Change git repo and worktree cache version to fix compatibility issues
Published by distorhead over 4 years ago
Published by flant-team-sysdev over 4 years ago
{{ range $path, $content := .Files.Glob ".werf/files/**" }}
{{ $path }}: |
{{ $content | indent 2 }}
{{ end }}
Process symlinks with .Files.Glob
.Files.Glob returns the hash of regular files and their contents for the paths that are matched pattern. This function follows only symlinks pointed to a regular file (not to a directory).
.Files.Glob: has an ability to merge results
The function supports shell pattern matching + **
. Results can be merged with merge
sprig function (e.g {{ $filesDict := merge (.Files.Glob "*/*.txt") (.Files.Glob "app/ **/*.txt") }}
)
Published by flant-team-sysdev over 4 years ago
Project file wih template:
{{ tpl (.Files.Get "service/werf_partial.yaml") . }}
Environment variable with template:
{{ tpl (env "EXTERNAL_TEMPLATE") . }}
Published by distorhead over 4 years ago
--tag-by-stages-signature
Do not check published docker-image-ID for images being published with content-based stages-signature
.
Write publish report when --publish-report-path PATH
option has been given.
There is --publish-report-format
options which accepts only json
for now.
Published by flant-team-sysdev over 4 years ago
Published by flant-team-sysdev over 4 years ago
Will fix errors like:
1.505658243s Error: phase build on image one stage gitLatestPatch handler failed: error preparing stage gitLatestPatch: error creating patch ↵
1.505670515s between `07bd04e9e2ad4fb03136943a2bbcb8aa50ff7471` and `07bd04e9e2ad4fb03136943a2bbcb8aa50ff7471` commits: git diff error: exit ↵
1.505684042s status 128
1.505687944s unrecognized output:
1.505692711s fatal: bad object 07bd04e9e2ad4fb03136943a2bbcb8aa50ff7471
Published by flant-team-sysdev over 4 years ago
[git] Refine git worktree switch procedure, fix remote git-mapping clone on every build if token has been specified
werf_work_tree_cache_dir
in the git-repo dir;
~/.werf/local_cache/git_repos/2/protocol-https/mydomain.mygitlab.com/grp/proj.git
.~/.werf/local_cache/git_worktrees/5/protocol-git/mydomain.mygitlab.com:22/grp/proj.git
.Published by flant-team-sysdev over 4 years ago
[docs] Guides/GitHub CI/CD Integration: open code snippets by default
[docs] Fix russian switch-to-distributed-mode guide: lost switch-from-local command example
[docs] Cli docs regen: added --virtual-merge-* options
[docs] Adding source code from git repositories sidebar: documentation: hide irrelevant documentation
Commit message with "[werf reset]" is no longer supported, but documentation section might be reused in the nearest future
[ci_env] GitHub: fix typo os.Getenv("IMAGES REPO")
[cli] Fix --release and --namespace params: add WERF_RELEASE and WERF_NAMESPACE options
Published by flant-team-sysdev over 4 years ago
[ci_env] GitHub: fix typo os.Getenv("IMAGES REPO")
[cli] Fix --release and --namespace params: add WERF_RELEASE and WERF_NAMESPACE options
Published by flant-team-sysdev over 4 years ago
--tag-by-stages-signature
Do not check published docker-image-ID for images being published with content-based stages-signature
.
Published by flant-team-sysdev over 4 years ago
The function supports shell pattern matching + **
. Results can be merged with merge
sprig function (e.g {{ $filesDict := merge (.Files.Glob "*/*.txt") (.Files.Glob "app/**/*.txt") }}
)
Published by flant-team-sysdev over 4 years ago
Project file wih template:
{{ tpl (.Files.Get "service/werf_partial.yaml") . }}
Environment variable with template:
{{ tpl (env "EXTERNAL_TEMPLATE") . }}
Werf stages related commands accepts following args:
--virtual-merge
;--virtual-merge-from-commit
;--virtual-merge-into-commit
.In virtual merge mode werf will try to reuse stages built for virtual merge commits.
Implement env support for some options:
Translated Guides/GitHub CI/CD integration guide.
Published by flant-team-sysdev over 4 years ago
[docs] Guides/GitHub CI/CD Integration: Up configurations and add note for weak workflows
[ci_env] GitHub: Reorganize cleanup section in env-file
Published by flant-team-sysdev over 4 years ago
[docs] Update activesupport in werf.io due to vunlerability alert
[docs] Guides/GitHub CI/CD integration: add werf-actions
[dismiss] Return exit code 0 when release is not found
[cli] Add envs support for string array flags
Published by flant-team-sysdev over 4 years ago
.Files.Glob
returns the hash of regular files and their contents for the paths that are matched pattern.Published by flant-team-sysdev over 4 years ago
Write publish report when --publish-report-path PATH
option has been given.
There is --publish-report-format
option which accepts only json
for now.
Example of publish report:
{
"Images": {
"one": {
"WerfImageName": "one",
"DockerRepo": "localhost:5000/alo/one",
"DockerTag": "a64687f43f31179cf069574a455e53d75937da81f82042fbfc7ad096",
"DockerImageID": "sha256:0151dda79c0c076aa00b4c90367d9e067e854fdb10027fc06e30ed0f1498016f"
},
"three": {
"WerfImageName": "three",
"DockerRepo": "localhost:5000/alo/three",
"DockerTag": "baff2bc90cf6c17e47e37e7b14ce0296ade95cbf35f7d33d3e72d0bb",
"DockerImageID": "sha256:c71998ef1916a6fddee0b334a28d2efa1f9f541fa0094c3f5f7aad6d2d98b44f"
},
"two": {
"WerfImageName": "two",
"DockerRepo": "localhost:5000/alo/two",
"DockerTag": "f5a8ee43e363925176e78230a467fa7e9e58324916f4be9e0b7ad6d7",
"DockerImageID": "sha256:1edd54ae5a18734a268ddeb9ea8eeb83137ac71dd8c0cf52afdc5c5039c0360d"
}
}
}
Published by flant-team-sysdev over 4 years ago
{{ range $path, $content := .Files.Glob ".werf/files/**" }}
{{ $path }}: |
{{ $content | indent 2 }}
{{ end }}
Ignore stages storage tags not matching the expected format for the remote stages storage of the werf.
Error: reading image "docker.pkg.github.com/user/repo/stages:de07eea0119baca706320aa6b7f32f887f5700b6fd82e1864867a1ee-1590064872402": GET
https://docker.pkg.github.com/v2/user/repo/stages/manifests/de07eea0119baca706320aa6b7f32f887f5700b6fd82e1864867a1ee-1590064872402: NAME_U
NKNOWN: docker package "stages" does not exist under owner "user/repo"
Published by flant-team-sysdev over 4 years ago
Automatically set gitlab docker registry implementation for stages storage and images repo.