Commit Graph

290 Commits

Author SHA1 Message Date
Lars Gohr
cade1bc239 Remove protocol from custom registry for setting in the name and checking in the name 2.6 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 2.5 2019-10-09 12:24:16 +02:00
Lars Gohr
2227c0c989 Because yml is cooler than docker labels, let's use the newest and shiniest action.yml 2.4 2019-10-08 19:30:53 +02:00
Lars
6f6235bed5 Delete action.yml 2019-10-08 17:29:52 +02:00
Lars
55cae956f8 Start to introduce actions.yml 2019-10-08 08:50:01 +02:00
Lars Gohr
a0a2102fcb Add buildargs. Refactor to use functions for better readability 2.3 2019-10-07 20:17:22 +02:00
Lars Gohr
d9e2d3009c Linting 2019-10-05 20:35:03 +02:00
Lars Gohr
4c8e17858f Start using stale 2019-10-05 12:05:38 +02:00
Lars Gohr
7678613fc3 Print a new line initially to handle https://github.com/actions/toolkit/issues/168 2.2 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 2.1 2019-09-30 21:13:47 +02:00
Lars Gohr
19ff29fad0 Formatting 2.0 2019-09-27 22:45:06 +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 1.14 2019-09-27 08:08:20 +02:00
Lars Gohr
1b9fb052a2 Introduce workdir 1.13 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
774950257f Override bins directly with mocks 2019-09-23 20:37:42 +02:00
Lars
2597d7d219 Add hint for AWS ECR 2019-09-22 13:31:12 +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) 1.12 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
b9943cee39 Cache bats test environment 2019-09-15 13:20:03 +02:00
Lars Gohr
3fdaf805af Fix formating 1.11 2019-09-07 21:03:57 +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
Lars Gohr
bbd985b7af Correct string comparison to standard test notation 2019-09-07 14:48:19 +02:00
Renovate Bot
e0635c0c6a Update docker Docker tag to v19.03.2 2019-09-04 21:38:27 +00:00
Lars
08bf6cb7f6 Rearrange README headers so that they're more easy to find 2019-09-01 17:18:57 +02:00
Lars
9b02427c9c Add new badges 2019-09-01 11:45:11 +02:00
Lars
3830a791a3 Remove quotes from custom registry documentation 2019-09-01 11:36:27 +02:00
Lars Gohr
539ac30433 Add Integration test for pushing to Github packages 2019-09-01 11:27:51 +02:00
Lars Gohr
c665a8a990 Add caching 1.10 2019-08-29 08:35:03 +02:00
Lars
f7980fbb91 Abort publish when an error happens 1.9 2019-08-28 20:13:21 +02:00
Lars Gohr
07e6ebee2d Change snapshot tag to contain the date 1.8 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. 1.7 2019-08-24 00:00:35 +02:00
Lars Gohr
7f8a8d4a00 Add checks for mandatory fields 1.6 2019-08-23 00:49:49 +02:00
Lars
075fcde19c It can publish to wherever 2019-08-22 22:15:59 +02:00
Lars
9be95cd5fa Formatting 2019-08-22 22:13:54 +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 1.5 2019-08-22 22:07:56 +02:00
Lars
964b205576 Update README.md 2019-08-22 20:26:06 +01:00
Lars Gohr
166600dee0 Correct name for matching dockerhub account 2019-08-22 18:12:44 +02:00
Lars Gohr
a9749785ae Upgrade to docker 19 major 2019-08-22 15:59:48 +02:00
Lars
f7a96de2a7 Correct image to not have capital letters 2019-08-22 12:17:20 +01:00
Lars Gohr
917d4f5f44 Rename test workflow 2019-08-22 10:05:51 +02:00
Lars Gohr
d20aaf54ed Add integration test 2019-08-22 10:03:33 +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. 1.3 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 1.2 2019-08-21 22:41:46 +02:00
Lars Gohr
2c7a6fb102 Formatting 2019-08-21 22:24:37 +02:00
Lars Gohr
5084055330 Add snapshot image push 2019-08-21 22:23:44 +02:00
Lars
545a48203e Add example for new actions format 2019-08-18 13:44:13 +02:00