Commit Graph

55 Commits

Author SHA1 Message Date
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
a28c5ceb1c 🐛 Remove reference to non-capturing group
Non-capturing groups don't exist in PCRE syntax, that is used by normal
sed (non-busybox) on the default GitHub actions runner.
Fixes https://github.com/elgohr/Publish-Docker-Github-Action/issues/155
2022-04-14 17:36:00 +02:00
Lars Gohr
47433670da ♻️ Remove debug option 2022-04-09 21:42:21 +02: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
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
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
2d6b8f33b6 Remove 'function' as this is not bourne shell. Escaping. 2020-05-19 21:19:21 +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
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
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
bbd985b7af Correct string comparison to standard test notation 2019-09-07 14:48:19 +02:00
Lars Gohr
c665a8a990 Add caching 2019-08-29 08:35:03 +02:00
Lars
f7980fbb91 Abort publish when an error happens 2019-08-28 20:13:21 +02:00
Lars Gohr
07e6ebee2d Change snapshot tag to contain the date 2019-08-25 19:56:47 +02:00
Lars Gohr
12169ed809 Get Docker Password from StdIn. Should not have been a problem in the past as the containers are thrown away after the run, but lets be sure. 2019-08-24 00:00:35 +02:00
Lars Gohr
7f8a8d4a00 Add checks for mandatory fields 2019-08-23 00:49:49 +02:00
Lars Gohr
505b28d941 Add docker login and logout, due to the data is not passed from the previous step. Remove old workflow, as it's not backward compatible. Use name instead of args for the image name 2019-08-22 22:07:56 +02:00
Lars Gohr
e541342d5d From buildlog it looks like the commit sha is also accessible from GITHUB_SHA. Lets try this, for making it more easy. 2019-08-22 07:24:38 +02:00
Lars Gohr
3730249596 Looks like git is capitalizing the environment variables. So lets shout when build. 2019-08-22 07:22:06 +02:00
Lars Gohr
eb9cfa9de0 Add option to specify a Dockerfile 2019-08-21 22:41:46 +02:00
Lars Gohr
5084055330 Add snapshot image push 2019-08-21 22:23:44 +02:00
Lars Gohr
215d3ea744 Stabilize and handle releases 2019-02-27 13:57:10 +01:00