Sinkerine
c38eb07dea
Fix the broken link in readme ( #38 )
2022-02-10 18:36:36 +05:30
Sinkerine
de43f3afb6
Port the auto tag feature from docker plugin ( #36 )
...
* Port the auto tag feature from https://plugins.drone.io/drone-plugins/drone-docker
The logic is forked from https://github.com/drone-plugins/drone-docker code base
with necessary modification. I've tested it e2e for DockerHub on my Drone server
via this plugin image https://hub.docker.com/repository/docker/15cm/drone-kaniko ,
for both tag pushes and commit pushes.
With this change the .drone.yml in this repo should work as intended.
Other changes:
- Rename the existing "auto tag" flags/code to "expand tag" for a less
misleading naming.
- ATTENTION: make a breaking change to set default value of "--tags" to empty.
Rationale is to expect most users to use the auto tagging feature. When power
users want to specify tags, they should always explicitly set tags instead of
being surprised by the default "latest" tag.
* Change how --auto-tag flag works with other flags
The --auto-tag has to be a breaking change. This commit limit the breaking
impact to the users who enable the flag. Behaviors of flag combination after
this commit:
* --auto-tag=false: No changes.
* --auto-tag=false,--expand-tag=true,tags=1.0.0:
* Old behavior: Should not happen. --expand-tag didn't exist.
* New Behavior: Build with [1,1.0,1.0.0] tags.
* --auto-tag=true
* Old behavior: Build with the "latest" tag.
* New behavior: Build with auto detected tags. Abort if auto detection failed.
* --auto-tag=true,tags=latest: same as "--auto-tag=true".
* --auto-tag=true,tags=1.0.0:
* Old behavior: Build with [1,1.0,1.0.0] tags.
* New behavior: Abort the build with an error message.
* --auto-tag=true,--expand-tag=true,tags=1.0.0: Abort the build with an error message.
Also added a test for the integration of the BUILD struct and the tagger
package, which is used by kaniko.go.
* Update readme to note that expand-tag and auto-tag don't support artifacts
2022-02-10 13:06:14 +05:30
Shubham Agrawal
bebe65a6c2
Revert "Upgrade kaniko version to 1.7.0 ( #37 )"
...
This reverts commit 0a4b18dbcbbdca199da776d8584f6b79edfbc02c.
Kaniko 1.7.0 version is unable to push latest tag on gcr:
https://github.com/GoogleContainerTools/kaniko/issues/1786#issuecomment-951369997
2022-02-08 17:16:47 +05:30
Shubham Agrawal
0a4b18dbcb
Upgrade kaniko version to 1.7.0 ( #37 )
2022-02-07 19:55:05 +05:30
JimZhang
d381ac6700
Fix "--cache-ttl" flag missing unit in duration ( #35 )
2022-02-07 19:13:29 +05:30
Kyle Lemons
39f3398dfe
Make plugins/kaniko behave the same as plugins/kaniko-{ecr,gcr} by prefixing the registry to the repo ( #31 )
2022-01-20 00:41:45 +05:30
Shubham Agrawal
59e09c14de
Add support for custom platform ( #32 )
2021-12-01 17:10:28 +05:30
Shubham Agrawal
5e7bcabe6a
Make json key optional for GCR push ( #30 )
2021-10-18 17:06:53 +05:30
Kyle Lemons
0a35538489
Add support for automatic tagging (:1, :1.2, :1.2.3, etc) for semantic versions ( #22 )
2021-10-18 00:05:18 +05:30
Michael Boke
2172c5b7cb
updated kaniko executer version to 1.6.0 to solve the docker registry authentication issues ( #28 )
2021-10-12 16:39:32 +05:30
Shubham Agrawal
9388a47a4c
Updated go version for security fixes ( #29 )
2021-10-12 16:38:58 +05:30
Colin Hoglund
609d203bed
support dockerhub credentials when pulling with kaniko-ecr ( #27 )
2021-09-16 10:12:03 +05:30
Simas ÄŒepaitis
e86d4583a7
Add ECR policy management support ( #26 )
2021-09-08 15:19:52 +05:30
Colin Hoglund
6b4393acf8
Do not require username/password with no_push: true
( #25 )
...
* allow --no-push to build without authentication
* linting
* setup no-push auth when credentials are not empty
2021-09-01 11:45:50 +05:30
Colin Hoglund
00a65ec0b5
Add support for creating ECR repos ( #24 )
2021-08-28 18:37:26 +05:30
Shubham Agrawal
dbd6efc157
Add option to provide log verbosity ( #23 )
2021-08-20 16:38:35 +05:30
Rauny
e65b7b3ada
add flag --no-push ( #21 )
2021-04-29 20:53:43 +05:30
Aleksandar Radisavljevic
df81f82f84
Add support for printing published docker image metadata to a file ( #17 )
2021-04-29 15:35:57 +05:30
Rauny
43db3f2ccc
add support for public ecr ( #20 )
2021-04-27 00:05:18 +05:30
Shubham Agrawal
71f15eb3f4
Make cache repo relative to registry for ecr/gcr ( #19 )
continuous-integration/drone/push Build was killed
2021-04-21 12:55:13 +05:30
Shubham Agrawal
4612825d41
Allow remote caching of docker layers in kaniko build ( #16 )
2021-04-08 00:05:53 +05:30
Shubham Agrawal
0933926fe2
Updated drone yml to update docker latest image ( #15 )
2021-03-19 17:46:22 +05:30
Shubham Agrawal
658478d5ae
Add snapshot mode support ( #13 )
2021-03-02 21:15:44 +05:30
Beniamin
9cca954ec6
add skip-tls-verify flag for insecure private registries ( #11 )
...
Co-authored-by: beniamin.calota <beniamin.calota@emag.ro>
2021-02-18 13:49:21 +05:30
Shubham Agrawal
3e4dad8cae
Merge pull request #10 from drone/fix_pipeline
...
Fix pipeline yaml with auto tag suffix
2021-01-30 00:10:51 +05:30
Shubham Agrawal
69d5e73564
Fix pipeline yaml with auto tag suffix
2021-01-30 00:09:22 +05:30
Shubham Agrawal
b33681a9b9
Merge pull request #9 from drone/improve_err
...
Log error if dockerfile does not exist at provided path
2021-01-29 14:41:19 +05:30
Shubham Agrawal
cdd1510210
Log error if dockerfile does not exist at provided path
2021-01-29 14:39:06 +05:30
Shubham Agrawal
fa7726153d
Merge pull request #8 from drone/ecr_iam
...
Make access key & secret optional in case of iam role usage on EKS cluster
2021-01-20 00:28:57 +05:30
Shubham Agrawal
49309bfa42
Make access key & secret optional in case of iam role usage on EKS cluster
2021-01-20 00:25:23 +05:30
Shubham Agrawal
428642719b
Merge pull request #7 from drone/fix_label
...
Fix label usage
2021-01-18 21:15:01 +05:30
Shubham Agrawal
33f15bdebe
Fix label usage
2021-01-18 21:12:53 +05:30
Shubham Agrawal
10df8f28b9
Merge pull request #6 from drone/fix_ecr
...
Fix kaniko ecr publish
2020-12-02 15:20:00 +05:30
Shubham Agrawal
17072a25f1
Fix ecr publish
2020-12-02 15:17:28 +05:30
Shubham Agrawal
26c93eccd1
Merge pull request #5 from drone/fix_gcr
...
Fix kaniko-gcr docker file
2020-11-26 23:50:20 +05:30
Shubham Agrawal
ee562a4a1b
Fix kaniko-gcr docker file
2020-11-26 23:47:00 +05:30
Shubham Agrawal
e200b5c566
Merge pull request #4 from drone/v2_registry
...
fix docker v2 registry issue
2020-11-26 16:32:29 +05:30
Shubham Agrawal
2c637d285e
fix docker v2 registry issue
2020-11-26 16:29:05 +05:30
Shubham Agrawal
4be32f2451
Merge pull request #3 from drone/fix_build_script
...
fix build script
2020-11-26 11:47:54 +05:30
Shubham Agrawal
5ba1a0ead7
fix build script
2020-11-26 11:45:10 +05:30
Shubham Agrawal
ef7bb68898
Merge pull request #2 from drone/fix_image
...
Fix docker file used for kaniko-docker image
2020-11-25 23:44:38 +05:30
Shubham Agrawal
9a7b245d90
Fix docker file for kaniko-docker
2020-11-25 23:42:56 +05:30
Shubham Agrawal
0d853fd119
Merge pull request #1 from drone/version_update
...
Updated kaniko base image to v1.3.0
2020-11-24 12:07:33 +05:30
Shubham Agrawal
94c4f7ea1b
Updated kaniko base image to v1.3.0
2020-11-21 16:13:01 +05:30
Brad Rydzewski
d24a3d83c2
added placeholder arm64 dockerfiles [ci skip]
2020-11-19 15:02:21 -05:00
Brad Rydzewski
7f3b7a9bbb
publish amd64 images
2020-11-19 14:27:09 -05:00
Shubham Agrawal
de01ca7375
Fixed readme
2020-11-17 00:39:21 +05:30
Shubham Agrawal
3770c3eb25
Added kaniko support to build & publish to ecr
2020-11-17 00:33:18 +05:30
Shubham Agrawal
0cbbf054a5
Added support to build and publish GCR image
2020-11-17 00:20:20 +05:30
Shubham Agrawal
1fbaab2bee
Working kaniko publish to docker
2020-11-16 23:41:59 +05:30