1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-04 21:35:23 +02:00

feat(ci): introduce GH Actions for Portainer CE (#10419)

Co-authored-by: Chaim Lev-Ari <chaim.levi-ari@portainer.io>
This commit is contained in:
Steven Kang 2023-10-24 19:30:33 +09:00 committed by GitHub
parent 860890046d
commit 08fdebfbd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 194 additions and 26 deletions

18
build/download_mingit_binary.sh Executable file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -euo pipefail
if [[ $# -ne 3 ]]; then
echo "Illegal number of parameters" >&2
exit 1
fi
PLATFORM=$1
MINGIT_VERSION=$3
if [[ ${PLATFORM} == "windows" ]]; then
GIT_VERSION=$(echo $MINGIT_VERSION | cut -d "." -f 1-3)
GIT_PATCH_VERSION=$(echo $MINGIT_VERSION | cut -d "." -f 4)
wget --tries=3 --waitretry=30 --quiet "https://github.com/git-for-windows/git/releases/download/v$GIT_VERSION.windows.$GIT_PATCH_VERSION/MinGit-$GIT_VERSION.$GIT_PATCH_VERSION-busybox-64-bit.zip"
unzip "MinGit-$GIT_VERSION.$GIT_PATCH_VERSION-busybox-64-bit.zip" -d dist/mingit
fi