43 Commits

Author SHA1 Message Date
Lars Gohr
4feac4d53e 🐛 Respect no_push in multi platform builds
Fixes https://github.com/elgohr/Publish-Docker-Github-Action/issues/215
2025-05-22 20:37:55 +02:00
Lars Gohr
ac21f5d46d ⬆️ Remove backward compatibility for set-output
See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-11-30 20:54:30 +01:00
Serge K
742a180fa4 Use the new set output (#171) 2022-11-04 13:28:02 +00:00
Lars Gohr
93655185f2 🚀 Support environment files
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-10-11 21:04:30 +02:00
Lars Gohr
cbaa32c746 🚀 Enable building multiarch images 2022-08-05 23:05:29 +02:00
Lars Gohr
47433670da ♻️ Remove debug option 2022-04-09 21:42:21 +02:00
Lars Gohr
99d870b29e ⬆️ Update to docker 20.10.9. Enable dependabot again 2021-11-14 20:25:23 +01:00
elgohr
184d5f4bcf ♻️ Remove platforms options
Platform was in beta and turned out not to be usable.
This still needs some tinkering with Github actions, but this wouldn't happen here.
See https://github.com/actions/virtual-environments/issues/3090
2021-04-13 11:38:35 +02:00
Lars Gohr
13c6c46d98 Support building multi-platform images 2021-04-01 22:58:14 +02:00
Casper da Costa-Luis
f7aca2fea7 no_push can be used without login (#111)
- fixes #110
2020-12-15 08:44:30 +01:00
Lars Gohr
5e568ddac4 Don't update major, minor and patch version on pre-release
Fixes https://github.com/elgohr/Publish-Docker-Github-Action/issues/108
2020-11-15 20:16:27 +01:00
Lars Gohr
b1253b2edf Support new default branch
See https://github.com/github/renaming#on-october-1-2020-newly-created-repositories-will-default-to-main
2020-09-20 19:40:12 +02:00
Lars Gohr
d8fded1799 Introduce default_branch 2020-09-01 21:03:23 +02:00
Lars Gohr
cc40c79473 Add feature for building an image without pushing it to a registry 2020-08-29 21:52:51 +02:00
Lars Gohr
94e33a1557 Add test for more complex passwords 2020-08-29 21:24:51 +02:00
Shouichi Kamiya
780fbae7f4 Fix semver regex to match multi digits minor version (#95)
* Fix semver regex to match multi digits minor version

The new regex matches multi digits minor version such as v0.10.0.

Close https://github.com/elgohr/Publish-Docker-Github-Action/issues/94.

* Add test for multi digits semver
2020-06-25 20:39:13 +02:00
Lars Gohr
bae033eb56 Remove function from tests as this is no shell 2020-05-24 12:27:08 +02:00
Tobias Pieri
014155fcaa Automatically lowercasing registry and image name (#86)
* make name lowercase

* Calling toLower

* fixed typo in lowercase method

* Also lowering registry input

* Update test.bats

Adapted tests

* Fixed last Upercases

* Linting

Co-authored-by: Lars Gohr <larsgohr@posteo.de>
2020-05-24 12:24:52 +02:00
Lars Gohr
b96d0ec55c Make sure that username and password are masked, before turning on verbose 2020-05-19 21:28:45 +02:00
Lars Gohr
554d1b7c0e Be verbose on ACTIONS_STEP_DEBUG 2020-05-19 21:06:16 +02:00
Lars Gohr
b2f63259b4 Support semver pre-releases (https://semver.org/#spec-item-11) 2020-03-24 19:48:01 +01:00
Roy Bongers
b82ad077c0 Add semver support when using git tags (#69)
* Add semver tag support

* Allow tag_names to be a fallback for tag_semver
2020-03-03 19:48:59 +01:00
Lars Gohr
a6e48211ae Introduce tags. Deprecate tag_names 2020-01-13 20:54:54 +01:00
Lars Gohr
a72734e157 Add buildoptions 2019-12-19 21:13:46 +01:00
Lars Gohr
ae6a789cff Populate digest after push. Refactor tests to use contains for checking 2019-12-14 19:56:49 +01:00
Lars Gohr
2b131c1355 Add a way to change the Docker build context 2019-11-29 14:09:06 +01:00
Lars Gohr
e8f33163ce Check booleans for falseness 2019-11-14 20:18:40 +01:00
Lars Gohr
691aa852ae Refactor mocking 2019-10-28 20:38:22 +01:00
Lars Gohr
a770e120e6 Add tag names 2019-10-18 22:06:08 +02:00
Lars Gohr
cade1bc239 Remove protocol from custom registry for setting in the name and checking in the name 2019-10-10 22:02:23 +02:00
Lars Gohr
1133a364e4 Prefix the name with the custom docker registry if not already present. Fixes https://github.com/elgohr/Publish-Docker-Github-Action/issues/33 2019-10-09 12:24:16 +02:00
Lars Gohr
a0a2102fcb Add buildargs. Refactor to use functions for better readability 2019-10-07 20:17:22 +02:00
Lars Gohr
7678613fc3 Print a new line initially to handle https://github.com/actions/toolkit/issues/168 2019-10-01 22:55:34 +02:00
Lars Gohr
081fbdad65 Restructure entrypoint to group tagging in a function to make it more clear. Use custom tag, if configured in the name 2019-10-01 22:24:13 +02:00
Lars Gohr
6b9504b15a Remove pull-request error, as it does not build to latest and the risk to go to production is low 2019-09-30 21:13:47 +02:00
Lars Gohr
593f4cbc3c Publish tag as output. Use github sha to tag pull requests 2019-09-27 22:43:22 +02:00
Lars Gohr
a5b5841bae Publish snapshot tag as an output for later use 2019-09-27 08:08:20 +02:00
Lars Gohr
1b9fb052a2 Introduce workdir 2019-09-23 20:37:42 +02:00
Lars Gohr
42252004bb Make stubs more explicit 2019-09-23 20:37:42 +02:00
Lars Gohr
2684231638 Fix breaking builds when the cached image was not there with tests (https://github.com/elgohr/Publish-Docker-Github-Action/pull/20) 2019-09-15 13:50:26 +02:00
Lars Gohr
073c9a9c0e Fix https://github.com/elgohr/Publish-Docker-Github-Action/issues/22 2019-09-15 13:20:39 +02:00
Lars Gohr
a48ee1845e Add option for building pull requests 2019-09-07 21:02:59 +02:00
Lars Gohr
91a3945f7b Use bats to clean up tests and remove complexity 2019-09-07 20:41:35 +02:00