1#!/usr/bin/env sh 2 3set -e 4 5# Get prerequisites for building the app 6(cd $(go env GOPATH) && curl -sL https://taskfile.dev/install.sh | sh) 7 8# Compile and build 9task deps 10set +e 11task compile 12set -e 13task build:local 14 15mv ./bin/semaphore /usr/local/bin/ 16chown 1001:0 /usr/local/bin/semaphore 17chmod +x /usr/local/bin/semaphore 18 19mv ./deployment/docker/common/semaphore-wrapper /usr/local/bin/semaphore-wrapper 20chown 1001:0 /usr/local/bin/semaphore-wrapper 21