Commit graph

15 commits

Author SHA1 Message Date
Fini Jastrow
48156a785f CI: Update all actions
[why]
Because we want to use Node 20 etc pp

[how]
Check for breaking changes and update.

Also replace checkout-files by checkout with sparse-checkout; as they
semselves encourage people to do.

action-gh-release has been updated to Node 20 but has not been released
with the change, so we access the latest version directly by hash.

[note]
Of course this is unchecked... what can ge wrong! 😬

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-02-29 11:36:41 +01:00
Fini Jastrow
b90ffd596a docker: Re-add "master" tag
[why]
Previously we had the tag 'master' set in all images, as the images were
created with every push the default branch (i.e. master). Some people
might use that tag for something.
At least we can not remove the last image with 'master' tag, and it will
become outdated immediately, making it a misnomer.

[how]
Add both tags. Hope this works ;-)

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-06-02 11:43:21 +02:00
Fini Jastrow
1394ade506 docker: Fix release tag
[why]
Forgot the dollar... the {{version}} got me.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-06-02 11:29:52 +02:00
Fini Jastrow
72e81a2f61 docker: Add font-patcher version tags to container
[why]
The font-patcher version of a concrete container is a useful information
if you want to use a not-latest version.

[how]
Add the font-patcher version, that is extracted by grep. Not the most
stable of all solutions but I guess it is good enough.

Fixes: #1267

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-06-02 11:19:33 +02:00
Fini Jastrow
df58a7809e CI: Entice docker to create arm64 container [skip ci]
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-28 19:08:26 +02:00
Fini Jastrow
1322285f3f CI: Tag every created docker with 'latest', really [skip ci]
[why]
Obviouly a type, `auto` vs `true` ....
Can not force push.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-28 11:32:29 +02:00
Fini Jastrow
52799046aa CI: Tag every created docker with 'latest', as before [skip ci]
[why]
Tagging behavior changed with inclusion of the Meta action.
Previously every docker-rebuild has been tagged 'latest', that is now
missing.

[how]
Enforce latest tag.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-28 11:24:11 +02:00
Fini Jastrow
018bedb969 CI: Enable manual docker rebuilds [skip ci]
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-28 11:10:21 +02:00
Fini Jastrow
3cc1d20b6b CI: Small changes on docker workflow
[why]
Credentials not needed (I guess).
Workflow is never run on pull-requests, so no check needed.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-28 11:02:12 +02:00
Sam McLeod
3f755e4838 feat: use standard Docker build Actions 2022-10-28 08:20:09 +11:00
Fini Jastrow
f4f19ea0e1 CI: Fix hopeless-docker prevention
[why]
I am sure I tested it and it worked. Well, it does not, it throws an
error message
  Unrecognized named-value: 'secrets'

[how]
Secrets can not be used in the `if`, see
https://github.com/actions/runner/issues/520

But they can be used in `env`, ... so do it there.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-08-26 19:31:48 +02:00
Fini Jastrow
1d6aa1748d CI: Prevent docker release when hopeless
[why]
On forks for example they might have a docker repo associated or not.
The release process is run in any case and will fail in that cases.

[how]
Check that at least the secret is known.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-08-26 11:34:07 +02:00
Fini Jastrow
43b5af6271 CI: Fix docker release trigger
[why]
The docker image should be rebuilt whenever a file that will end up in
the container has been changed. So this needs to be in line with the
.dockerignore file.

[how]
Add missing (new) `font-patcher` sub-scripts.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-08-26 11:30:27 +02:00
Fini Jastrow
d43e6ea267 CI: Update action/checkout to v3
[why]
* Automatically does a shallow checkout, what we want anyhow
* Keep up to date

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-08-19 13:24:39 +02:00
Marcus Schweda
5dfd0aafaf GitHub workflow 2020-03-06 23:12:46 +01:00