1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 05:19:39 +02:00

chore(build): remove grunt and add makefile [EE-4824] (#8125)

This commit is contained in:
Chaim Lev-Ari 2023-05-02 10:13:37 +07:00 committed by GitHub
parent 731f3959c7
commit f20d3e72b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 277 additions and 1407 deletions

View file

@ -1,4 +1,6 @@
#!/bin/sh
#!/usr/bin/env bash
set -euo pipefail
DEBUG=${DEBUG:-""}
if [ -n "$DEBUG" ]; then
set -x
@ -17,7 +19,8 @@ GO_VERSION=${GO_VERSION:-"0"}
# copy templates
cp -r "./mustache-templates" "./dist"
cd api
cd api || exit 1
# the go get adds 8 seconds
go get -t -d -v ./...
@ -31,6 +34,6 @@ GOOS=$1 GOARCH=$2 CGO_ENABLED=0 go build \
--X 'github.com/portainer/portainer/api/build.NodejsVersion=${NODE_VERSION}' \
--X 'github.com/portainer/portainer/api/build.YarnVersion=${YARN_VERSION}' \
--X 'github.com/portainer/portainer/api/build.WebpackVersion=${WEBPACK_VERSION}' \
--X 'github.com/portainer/portainer/api/build.GoVersion=${GO_VERSION}'" \
-o "../dist/portainer" \
./cmd/portainer/
--X 'github.com/portainer/portainer/api/build.GoVersion=${GO_VERSION}'" \
-o "../dist/portainer" \
./cmd/portainer/