aceberg/git-confed

View on GitHub
build/ci/build.sh

Summary

Maintainability
Test Coverage
#!/bin/bash

PKGNAME=git-confed
PKGDIR=/opt/$PKGNAME

cd cmd/$PKGNAME/ && CGO_ENABLED=0 go build -o ../../$PKGNAME .
cd ../../

umask 0022

mkdir -p $PKGDIR
cp $PKGNAME $PKGDIR/
cp configs/$PKGNAME.service $PKGDIR/
cp configs/$PKGNAME@.service $PKGDIR/
cp configs/install.sh $PKGDIR/

cd /opt
tar cvzf $PKGNAME-$1.tar.gz $PKGNAME
cd -
cp /opt/$PKGNAME-$1.tar.gz .