Hidde Beydals
3b42b200d3
action: support openssl and sha256sum
...
As availability may be limited in some edge cases.
When a job is for example running within a container, `openssl` is not
always available. However, when running on a macOS or Windows runner,
the actual opposite is true.
Signed-off-by: Hidde Beydals <hidde@hhh.computer >
2023-07-11 11:10:08 +02:00
Hidde Beydals
6fa495b843
action: re-allow configuration of non-default token
...
To allow usage of action on GitHub Enterprise instances.
Signed-off-by: Hidde Beydals <hidde@hhh.computer >
2023-07-10 16:25:36 +02:00
Stefan Prodan
6f94844a35
docs: Link to the Flux GitHub Action documentation
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2023-07-07 17:45:51 +03:00
Hidde Beydals
6f94ec728f
action: rewrite action to use $RUNNER_TOOL_CACHE
...
Plus the verification of the SHA256 of the archive, as advertised in
the checksum file published together with the release.
Signed-off-by: Hidde Beydals <hidde@hhh.computer >
2023-07-07 11:50:33 +02:00
Hidde Beydals
0f7b903ace
Update push artifact's --revision to RFC-0005
...
Signed-off-by: Hidde Beydals <hello@hidde.co >
2023-02-17 12:48:55 +01:00
Stefan Prodan
3fc5f34344
docs: Add permissions to update workflow
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2023-02-03 16:51:22 +02:00
Stefan Prodan
6681cd05a9
Add example of push and sign OCI artifacts
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2023-01-31 14:30:50 +02:00
Joel Guedj
5b422bef17
Handle case where VERSION is provided as an input
...
If VERSION is provided, VERSION_SLUG will never be set and VERSION will
be overwritten with a bad value.
Signed-off-by: Joel Guedj <joel.guedj@gmail.com >
2023-01-26 11:46:21 +01:00
Kingdon Barrett
ed13067ff2
test conditionals in a nested structure
...
add an "else" branch
(https://github.com/fluxcd/flux2/pull/3511 failed to fix #3509 )
* factor out sed and cut
so we at least do not repeat the most complex part of the expression
* eliminate intermediary array TOKEN
* delete reassignment of token
* wording
Signed-off-by: Kingdon Barrett <kingdon@weave.works >
2023-01-24 14:25:42 -05:00
Kingdon Barrett
536f4c31ce
do not quote token here
...
Adding quotes here, when the variable is empty you get:
curl https://api.github.com/repos/fluxcd/flux2/releases/latest -sL ''
(ref:
https://github.com/kingdonb/bootstrap-repo/actions/runs/3991169408/jobs/6845685491#step:3:31
)
That does curl twice, once for the URL provided and again for the empty
string, which results in curl returning error code 3 "malformed URL"
Signed-off-by: Kingdon Barrett <kingdon@weave.works >
2023-01-23 17:50:12 -05:00
Kingdon Barrett
369ae5aa71
Quote tested values in fluxcd/flux GitHub Action
...
Fix an issue with improperly quoted variables created by #3474
Also, curl should fail with an error code if the download results in
404 not found
* + (x3) Update action/action.yml
* for consistent format
Co-authored-by: Steven E. Harris <seh@panix.com >
Signed-off-by: Kingdon Barrett <kingdon@weave.works >
2023-01-23 14:51:18 -05:00
Erik Kristensen
8ff8295d0c
fix: update example to use correct output method
...
feat: add ability to auth to github api
docs: add authentication snippet example
docs: update checkout@v3, create-pull-request@v4
docs: add documentation about the github token secret
Review: Add suggested change from last week
(per
https://github.com/fluxcd/flux2/pull/3474#discussion_r1067178730 )
Signed-off-by: Erik Kristensen <erik@erikkristensen.com >
Signed-off-by: Kingdon Barrett <kingdon@weave.works >
2023-01-21 13:07:23 -05:00
Stefan Prodan
75a879c770
OCI docs improvements
...
Co-authored-by: Kingdon Barrett <kingdon@weave.works >
Co-authored-by: Sunny <darkowlzz@protonmail.com >
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2022-08-10 12:02:30 +03:00
Stefan Prodan
d4c5a137a1
Add examples for pushing artifacts with GH Actions
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2022-08-09 13:51:14 +03:00
Gergely Brautigam
759145704f
Update the action to include an optional bindir
...
Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com >
2022-01-12 10:38:19 +01:00
Stefan Prodan
f52387e849
Add ARM and ARM64 support to flux GitHub Action
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2021-06-25 13:32:39 +03:00
Stefan Prodan
8043ae961a
Refactor Flux GitHub Action
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2021-02-17 00:07:39 +02:00
Stefan Prodan
61e1fb770e
Add webhook section to image update docs
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2021-01-29 13:09:01 +02:00
Hidde Beydals
7b6f875920
docs: 'like so' -> 'as in the following example'
...
Signed-off-by: Hidde Beydals <hello@hidde.co >
2020-12-18 14:00:52 +01:00
Terdunov Vyacheslav
52cec044b8
Fix typo
...
Signed-off-by: Terdunov Vyacheslav <mail2slick@gmail.com >
2020-12-18 14:00:52 +01:00
Stefan Prodan
5d9ccc973d
Move flux binary to GitHub workspace
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2020-12-17 14:26:35 +02:00
Stefan Prodan
c4da4a81aa
Add note about ignoring flux action binary
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2020-12-17 13:34:39 +02:00
Stefan Prodan
90f4891ca9
Automate Flux upgrades with GitHub Actions
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2020-12-01 11:16:26 +02:00
Stefan Prodan
aa8dced7ad
Add GitHub Action for Flux CLI
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2020-11-23 17:58:06 +02:00