mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-13 09:54:29 -05:00
18 lines
679 B
YAML
18 lines
679 B
YAML
name: Setup crane
|
|
description: "Install crane (go-containerregistry)."
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Install
|
|
shell: bash
|
|
env:
|
|
VERSION: "0.12.1"
|
|
OS: ${{ runner.os == 'Linux' && 'Linux' || 'Darwin' }}
|
|
ARCH: ${{ runner.arch == 'X64' && 'x86_64' || runner.arch == 'ARM64' && 'arm64' }}
|
|
run: |
|
|
echo "::group::Install crane"
|
|
curl -fsSL "https://github.com/google/go-containerregistry/releases/download/v${VERSION}/go-containerregistry_${OS}_${ARCH}.tar.gz" > go-containerregistry.tar.gz
|
|
tar -xzf go-containerregistry.tar.gz
|
|
sudo mv krane gcrane crane /usr/local/bin/
|
|
echo "::endgroup::"
|