mirror of
https://github.com/SmartHoneybee/ubiquitous-memory
synced 2025-10-24 15:23:49 +02:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ea209b1cb4 | ||
|
|
a4963df160 | ||
|
|
2c62ab2b0e | ||
|
|
85cb4319c0 | ||
|
|
da7d3b0da6 | ||
|
|
d9d94c2ee9 | ||
|
|
8e4b90726c |
9
.github/dependabot.yml
vendored
Normal file
9
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: gomod
|
||||
directory: "/dependabot"
|
||||
schedule:
|
||||
interval: daily
|
||||
time: "00:15"
|
||||
open-pull-requests-limit: 99
|
||||
target-branch: master
|
||||
@@ -8,6 +8,7 @@ env:
|
||||
- DEBIAN_RELEASE='buster'
|
||||
- DOCKER_PWD='/root'
|
||||
- DOCKER_IMAGE="debian:${DEBIAN_RELEASE}"
|
||||
- GO_VERSION='1.15.5'
|
||||
matrix:
|
||||
- GOOS='dragonfly' GOARCH='amd64'
|
||||
- GOOS='freebsd' GOARCH='amd64'
|
||||
|
||||
13
build.sh
13
build.sh
@@ -10,6 +10,8 @@ MATTERMOST_RELEASE="${MATTERMOST_RELEASE:-v5.4.0}"
|
||||
# node key id and release
|
||||
NODE_KEY="${NODE_KEY:-9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280}"
|
||||
NODE_RELEASE="${NODE_RELEASE:-10}"
|
||||
# golang version
|
||||
GO_VERSION="${GO_VERSION:-1.15.5}"
|
||||
|
||||
if [ "$(id -u)" -eq 0 ]; then # as root user
|
||||
# create build user, if needed
|
||||
@@ -43,15 +45,18 @@ if [ "$(id -u)" -eq 0 ]; then # as root user
|
||||
> '/etc/apt/sources.list.d/nodesource.list'
|
||||
# update repositories
|
||||
apt-get update
|
||||
# install go from Debian backports
|
||||
apt-get install --quiet --target-release "${DEBIAN_RELEASE}-backports" \
|
||||
golang-go
|
||||
# install dependencies
|
||||
apt-get install --quiet \
|
||||
wget build-essential patch git nodejs
|
||||
# install 'pngquant' build dependencies (required by node module)
|
||||
apt-get build-dep --quiet \
|
||||
pngquant
|
||||
# install go from golang.org
|
||||
wget https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz
|
||||
tar -xvf go${GO_VERSION}.linux-amd64.tar.gz
|
||||
mv go /usr/local
|
||||
export GOROOT=/usr/local/go
|
||||
export PATH=$GOROOT/bin:$PATH
|
||||
# FIXME go (executed by build user) writes to GOROOT
|
||||
install --directory --owner="${BUILD_USER_NAME}" \
|
||||
"$(go env GOROOT)/pkg/$(go env GOOS)_$(go env GOARCH)"
|
||||
@@ -65,6 +70,8 @@ if [ "$(id -u)" -eq 0 ]; then # as root user
|
||||
exit 0
|
||||
fi
|
||||
# as non-root user
|
||||
export GOROOT=/usr/local/go
|
||||
export PATH=$GOROOT/bin:$PATH
|
||||
cd "${HOME}"
|
||||
# download and extract Mattermost sources
|
||||
for COMPONENT in server webapp; do
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
module github.com/SmartHoneybee/ubiquitous-memory/dependabot
|
||||
|
||||
require github.com/mattermost/mattermost-server/v5 v5.32.0
|
||||
require github.com/mattermost/mattermost-server/v5 v5.34.1
|
||||
|
||||
Reference in New Issue
Block a user