Commit graph

84 commits

Author SHA1 Message Date
CrazyMax 61879b94bc
bake: set cwd:// prefix for bake files path
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-01-04 10:09:06 +01:00
CrazyMax 36ea4ee555
bake: refactor generateBakeFile
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2023-12-20 14:48:27 +01:00
CrazyMax cb0becceaf
custom annotations support
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2023-11-30 15:09:51 +01:00
CrazyMax d6a296c454
chore: use anonymous func to generate tags and add tests
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2023-11-30 10:41:18 +01:00
Jason D'Amour aacea38e07
feat: allow the images input to be empty, to output just tags
Signed-off-by: Jason D'Amour <jasondamour98@gmail.com>
2023-11-30 10:23:11 +01:00
CrazyMax f0ad8701de
annotations support
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2023-11-30 10:08:54 +01:00
CrazyMax b94479639a
bake: split definition into two files
Allows to either include tags or labels or both definitions.
Keep bake-file output for backward compatibility.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2023-11-23 17:08:07 +01:00
CrazyMax ef7eee951a
enable comments to avoid breaking change with current impl
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-06-13 12:24:00 +02:00
CrazyMax 2dadb92b6b
dedup and sort labels
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-06-13 02:31:02 +02:00
CrazyMax 80530e08c5
use new implementation from toolkit
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-04-17 04:33:51 +02:00
Emilien Escalle 8f8c795666 feat: allows to specify context to fetch git data
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
2023-03-30 12:53:58 +02:00
CrazyMax b5c378621c
switch to actions-toolkit implementation
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-02-21 09:22:45 +01:00
CrazyMax 6729545cde
Provide outputs as env vars
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-01-13 11:46:25 +01:00
chroju 90a1d5cf21
Add tz attribute to handlebar date function
Signed-off-by: chroju <chroju@users.noreply.github.com>
2023-01-06 18:11:29 +09:00
CrazyMax a99e71cdc7
revert changes to set associated head sha on pull request event
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-17 11:49:09 +02:00
CrazyMax f17e188860
Remove workaround for setOutput
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-12 07:07:13 +02:00
CrazyMax 5f26473e44
docs: update links and layout
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-08 02:13:25 +02:00
CrazyMax 61ddee1921
set associated head sha on pull request event
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-08 00:18:51 +02:00
CrazyMax 3862a1b70f
do not trim whitespace for sep-tags and sep-labels inputs
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-07 23:10:32 +02:00
CrazyMax 2f5b5ae8bf
Sanitize tag earlier
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-05-05 13:54:54 +02:00
CrazyMax e44c1fbe6e
Do not sanitize before pattern matching
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-05-04 15:02:20 +02:00
CrazyMax 2f4dd1462a
backward compatibility with old images format
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-04-28 09:08:29 +02:00
CrazyMax a5680a6642
attribute to enable/disable images
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-04-27 16:59:05 +02:00
CrazyMax 0a72be43da
don't handle default branch global exp for pr events
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-04-26 17:13:40 +02:00
CrazyMax aca951f8f5
remove support of default branch global exp for push tag events
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-04-26 14:47:51 +02:00
CrazyMax 7d7a22a682
fix undefined base_ref for some events
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-04-25 13:43:13 +02:00
CrazyMax 89bf6c030f
log webhook payload if action step debug enabled
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-04-25 13:42:30 +02:00
CrazyMax e1a45f6e54
is_default_branch global expression
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-04-25 13:41:47 +02:00
CrazyMax b7ad32e4f5
Fix csv-parse implementation since major update
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-04-25 13:35:08 +02:00
CrazyMax 5f62bc0532
dev: update fixtures
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-04-19 13:18:19 +02:00
CrazyMax e99ab50e6c
chore: update dev dependencies and workflow
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-03-22 21:09:00 +01:00
CrazyMax 1068b75f65
handle comments for multi-line inputs
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-03-07 07:39:41 +01:00
CrazyMax aad230bbd9
fix: handle raw statement for pep440 pre-release
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-12-06 17:15:06 +01:00
CrazyMax 52100c89dd
fix: handle raw statement for semver pre-release
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-12-06 15:42:33 +01:00
CrazyMax 59e3d70a23
Preserve quotes inside unquoted field
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-11-29 13:31:50 +01:00
CrazyMax b69dce7fed
Trim tags and flavor inputs
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-10-22 13:50:33 +02:00
CrazyMax 09666f941b
base_ref global expression
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-10-22 13:14:53 +02:00
CrazyMax e4f548552d
Add global expression "date"
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-19 19:58:15 +02:00
CrazyMax 4cb9252fa6
Only return edge if branch matches
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-07-12 17:08:07 +02:00
CrazyMax a1770d2eba
PEP 440 support
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-07-06 13:56:55 +02:00
CrazyMax 375e313280
Allow global prefix/suffix on latest
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-07-05 20:37:02 +02:00
CrazyMax 85f4f732f2
Fix pull_request_target event
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-05-25 18:45:38 +02:00
CrazyMax 28d7c8bbcd
Fix octokit definition object
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-05-25 02:07:31 +02:00
CrazyMax 4d088f5efc
Handle pull_request_target event
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-05-23 03:54:23 +02:00
CrazyMax e6f3e4aa91
Add json output
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-05-22 21:23:06 +02:00
CrazyMax 8841ef4bb7
Add format attribute for type=sha
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-05-11 20:14:27 +02:00
CrazyMax ed01528979
Rename bake target
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-05-10 15:54:35 +02:00
CrazyMax 5e6d5157fb
Handle global expressions (#71)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-05-07 21:53:30 +02:00
CrazyMax 72e5d60481
Add bake-target input (#69)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-04-30 00:51:48 +02:00
CrazyMax ae431178c1
Fix setOutput (#67)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-04-24 00:44:38 +02:00