-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: use mint to minify container images
- Loading branch information
1 parent
dcedae0
commit 646e3d0
Showing
2 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: mint | ||
description: Setup https://github.com/mintoolkit/mint | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Setup mint | ||
run: | | ||
mkdir -p "$HOME/.local/bin" | ||
cd "$HOME/.local/bin" | ||
# Get the current released tag_name | ||
VER=$(curl -sL https://api.github.com/repos/mintoolkit/mint/releases \ | ||
| grep tag_name | head -n1 | cut -d'"' -f4) | ||
curl -L -o mint.tar.gz "https://github.com/mintoolkit/mint/releases/download/${VER}/dist_linux.tar.gz" | ||
tar -xvf mint.tar.gz --strip-components 1 | ||
echo "Installed mint:${VER}" | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters