Commit Graph

5 Commits

Author SHA1 Message Date
Ed Morley b852fbd67b
Update default version of crane from 0.14.0 to 0.19.1
Since I just tried to use `crane copy --all-tags` with the version installed
by the `setup-tools` action, however, it failed with:

```
Error: unknown flag: --all-tags
```

It turns out that feature was added in 0.15.0 in May 2023, but that
version is still newer than the version installed by this action.

Whilst I can manually override the version myself, it seems we should
update the default version to prevent others from running into
similar footguns.

https://github.com/google/go-containerregistry/compare/v0.14.0...v0.19.1

Signed-off-by: Ed Morley <501702+edmorley@users.noreply.github.com>
2024-04-08 14:30:47 +01:00
Jerico Pena 0331efe90e Bump crane from 0.12.1 to 0.14.0
Signed-off-by: Jerico Pena <jericop@gmail.com>
2023-05-10 00:43:08 -04:00
Jerico Pena 221018fe74 Add arm64 support for setup-pack and setup-tools
Signed-off-by: Jerico Pena <jericop@gmail.com>
2023-05-02 15:08:00 -04:00
Ed Morley 48a6c34c23
Support yj's updated download filename
As of `yj` 5.1.0+ the filename of the asset attached to the GitHub release
is now `yj-linux-arm64` instead of `yj-linux`.

This change ensures that the new yj default (as of #164) is able to be
downloaded, since currently the action fails with:

```
Installing yj 5.1.0
curl: (22) The requested URL returned error: 404
Error: Process completed with exit code 22.
```

The bash string comparison of the semver version isn't ideal, but it
doesn't feel worth adding further complexity given that:
- all `yj` releases so far use a full semver version (and not say an `X.Y` version)
- `yj` major releases are infrequent, so it's going to be a while before v10 is out
  (which would break the comparison) - by which point this backwards compatibiluty
  comparison can just be removed (and support for pre 5.1.0 removed).

Signed-off-by: Ed Morley <501702+edmorley@users.noreply.github.com>
2023-01-03 22:30:20 +00:00
Ed Morley 03188e3daf
Move tool installation from `setup-pack` to a new `setup-tools` action
Previously the `setup-pack` action installed not only the Pack CLI, but also
three additional tools: `crane`, `jq` and `yj`.

These additional tools are only needed in a subset of cases, however there was
no way to prevent their installation.

Now, the `setup-pack` action only installs the Pack CLI, and a new `setup-tools`
action has been added, which installs `crane` and `yj`. This new action does not
install `jq` (unlike the previous `setup-pack` implementation), since `jq` is already
installed in all of GitHub Actions' base images.

In addition, the default versions of tools have been bumped as follows:
- `crane`: `0.6.0` -> `0.12.1`
- `yj`: `5.0.0` -> `5.1.0`

Closes #121.

Signed-off-by: Ed Morley <501702+edmorley@users.noreply.github.com>
2022-12-30 12:32:07 +00:00