1
0
mirror of https://github.com/SmartHoneybee/ubiquitous-memory synced 2025-10-24 15:23:49 +02:00

Compare commits

...

18 Commits

Author SHA1 Message Date
parnic-sks
65f66300ea Update to Mattermost v5.35.3 (#116) 2021-06-15 08:14:19 +02:00
parnic-sks
896ca40562 Convert from Travis CI to Github actions (#120) 2021-06-15 07:53:34 +02:00
Pierre de La Morinerie
a3ed63c840 Update to Mattermost 5.35.2 (#115) 2021-06-06 15:17:51 +00:00
Pierre de La Morinerie
c3bf7a5e6e Update to Mattermost 5.35.1 (#113) 2021-05-30 09:17:38 +00:00
dependabot[bot]
8bfcbc152c Bump github.com/mattermost/mattermost-server/v5 from 5.34.1 to 5.34.2 in /dependabot (#110)
* Bump github.com/mattermost/mattermost-server/v5 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.34.1 to 5.34.2.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.34.1...v5.34.2)

Signed-off-by: dependabot[bot] <support@github.com>

* Fixing dependabot again

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: parnic-sks <chris@straykitestudios.com>
2021-04-19 17:23:54 -05:00
parnic-sks
ea209b1cb4 Update to Mattermost 5.34.1 (#109) 2021-04-15 15:08:38 -05:00
parnic-sks
a4963df160 Update to Mattermost 5.34.0 (#108) 2021-04-15 09:00:04 -05:00
parnic-sks
2c62ab2b0e Update to Mattermost 5.33.3 (#107) 2021-03-31 14:49:36 -05:00
parnic-sks
85cb4319c0 Update to 5.33.2, re-enable configurations (#106) 2021-03-25 12:52:32 -05:00
dependabot-preview[bot]
da7d3b0da6 Create Dependabot config file (#105) 2021-03-23 19:48:28 -05:00
dependabot-preview[bot]
d9d94c2ee9 Bump github.com/mattermost/mattermost-server/v5 from 5.32.1 to 5.33.0 in /dependabot (#104)
* Bump github.com/mattermost/mattermost-server/v5 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.32.1 to 5.33.1.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.32.1...v5.33.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: parnic-sks <chris@straykitestudios.com>
2021-03-23 12:20:56 -05:00
parnic-sks
8e4b90726c Update to Mattermost 5.32.1 (#103) 2021-02-17 15:48:41 -06:00
dependabot-preview[bot]
0fc1ecee72 Bump github.com/mattermost/mattermost-server/v5 from 5.31.1 to 5.32.0 in /dependabot (#102)
* Bump github.com/mattermost/mattermost-server/v5 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.31.1 to 5.32.0.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.31.1...v5.32.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Fix up dependabot's go.mod

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: parnic-sks <chris@straykitestudios.com>
2021-02-17 10:58:43 -06:00
parnic-sks
4f364878e5 Update to Mattermost 5.31.1 (#101) 2021-02-06 16:03:38 -06:00
parnic-sks
a84d8e49ab Update to Mattermost 5.31.0 (#100) 2021-01-15 09:46:49 -06:00
parnic-sks
81b4106fc7 Mattermost 5.30.1 release (#98)
* Mattermost 5.30.0 release

* Update to 5.30.1 due to Mattermost release bug
2020-12-21 09:07:32 -06:00
dependabot-preview[bot]
f92e152276 Bump github.com/mattermost/mattermost-server/v5 from 5.29.0 to 5.29.1 in /dependabot (#97)
* Bump github.com/mattermost/mattermost-server/v5 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.29.0 to 5.29.1.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.29.0...v5.29.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Fix dependabot go.mod

* Update build-release.patch for mmctl changes

* Remove additional mmctl script reference

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: parnic-sks <chris@straykitestudios.com>
2020-12-06 10:52:33 -06:00
dependabot-preview[bot]
df047ff1c3 Bump github.com/mattermost/mattermost-server/v5 from 5.28.1 to 5.29.0 in /dependabot (#95)
Bump github.com/mattermost/mattermost-server/v5 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.28.1 to 5.29.0.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.28.1...v5.29.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: parnic-sks <chris@straykitestudios.com>
2020-11-21 14:30:01 +00:00
7 changed files with 161 additions and 57 deletions

9
.github/dependabot.yml vendored Normal file
View 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

122
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,122 @@
name: Package and release
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
DEBIAN_RELEASE: buster
DOCKER_PWD: /root
DOCKER_IMAGE: debian:${DEBIAN_RELEASE}
GO_VERSION: 1.15.5
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [dragonfly, freebsd, linux, netbsd, openbsd]
arch: [amd64, arm, arm64, mips, mips64, mips64le, ppc64, ppc64le, s390x ]
exclude:
- os: dragonfly
arch: arm
- os: dragonfly
arch: arm64
- os: dragonfly
arch: mips
- os: dragonfly
arch: mips64
- os: dragonfly
arch: mips64le
- os: dragonfly
arch: ppc64
- os: dragonfly
arch: ppc64le
- os: dragonfly
arch: s390x
- os: freebsd
arch: arm64
- os: freebsd
arch: mips
- os: freebsd
arch: mips64
- os: freebsd
arch: mips64le
- os: freebsd
arch: ppc64
- os: freebsd
arch: ppc64le
- os: freebsd
arch: s390x
- os: netbsd
arch: arm64
- os: netbsd
arch: mips
- os: netbsd
arch: mips64
- os: netbsd
arch: mips64le
- os: netbsd
arch: ppc64
- os: netbsd
arch: ppc64le
- os: netbsd
arch: s390x
- os: openbsd
arch: arm64
- os: openbsd
arch: mips
- os: openbsd
arch: mips64
- os: openbsd
arch: mips64le
- os: openbsd
arch: ppc64
- os: openbsd
arch: ppc64le
- os: openbsd
arch: s390x
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Set environment from runtime properties
run: echo "MATTERMOST_RELEASE=$(grep 'mattermost' dependabot/go.mod | cut -d' ' -f3)" >> $GITHUB_ENV
- name: Pull docker image
run: 'docker pull "${{ env.DOCKER_IMAGE }}"'
- name: Build
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
run: docker run --mount="type=bind,source=$PWD,destination=${{ env.DOCKER_PWD }}" --rm=true --tty=true --workdir="${{ env.DOCKER_PWD }}" -e DEBIAN_RELEASE -e MATTERMOST_RELEASE -e GOOS -e GOARCH "${{ env.DOCKER_IMAGE }}" ./build.sh
- name: Tag release
if: github.ref == 'refs/heads/master'
uses: actions/github-script@v3
# this throws an error if the tag already exists. can't find a way around that without writing our own Github REST client or forking github's scripts repo.
# would prefer to do this before any of these jobs run, but we need to know the mattermost version which only happens after a clone. could potentially
# setup a separate job which does clone + tag, but felt like this was "good enough" for now.
continue-on-error: true
with:
script: |
github.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ env.MATTERMOST_RELEASE }}',
sha: context.sha
})
- name: Create Github release
if: github.ref == 'refs/heads/master'
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.MATTERMOST_RELEASE }}
files: |
mattermost-${{ env.MATTERMOST_RELEASE }}-${{ matrix.os }}-${{ matrix.arch }}.tar.gz
mattermost-${{ env.MATTERMOST_RELEASE }}-${{ matrix.os }}-${{ matrix.arch }}.tar.gz.sha512sum

View File

@@ -1,44 +0,0 @@
language: c
os: linux
dist: bionic
services:
- docker
env:
global:
- DEBIAN_RELEASE='buster'
- DOCKER_PWD='/root'
- DOCKER_IMAGE="debian:${DEBIAN_RELEASE}"
matrix:
- GOOS='dragonfly' GOARCH='amd64'
- GOOS='freebsd' GOARCH='amd64'
- GOOS='freebsd' GOARCH='arm'
- GOOS='linux' GOARCH='arm'
- GOOS='linux' GOARCH='arm64'
- GOOS='linux' GOARCH='mips'
- GOOS='linux' GOARCH='mips64'
- GOOS='linux' GOARCH='mips64le'
- GOOS='linux' GOARCH='mipsle'
- GOOS='linux' GOARCH='ppc64'
- GOOS='linux' GOARCH='ppc64le'
- GOOS='linux' GOARCH='s390x'
- GOOS='netbsd' GOARCH='amd64'
- GOOS='netbsd' GOARCH='arm'
- GOOS='openbsd' GOARCH='amd64'
- GOOS='openbsd' GOARCH='arm'
before_install:
- export MATTERMOST_RELEASE="$(grep 'mattermost' dependabot/go.mod | cut -d' ' -f3)"
- docker pull "${DOCKER_IMAGE}"
- chmod +x build.sh
script:
- docker run --interactive=true --mount="type=bind,source=${PWD},destination=${DOCKER_PWD}" --rm=true --tty=true --workdir="${DOCKER_PWD}" -e DEBIAN_RELEASE -e MATTERMOST_RELEASE -e GOOS -e GOARCH "${DOCKER_IMAGE}" ./build.sh
before_deploy:
- git config --local user.name 'Travis CI'
- git config --local user.email 'travis@travis-ci.org'
- git tag "${MATTERMOST_RELEASE}" || true
deploy:
provider: releases
api_key: "${GITHUB_OAUTH_TOKEN}"
file:
- "${TRAVIS_BUILD_DIR}/mattermost-${MATTERMOST_RELEASE}-${GOOS}-${GOARCH}.tar.gz"
- "${TRAVIS_BUILD_DIR}/mattermost-${MATTERMOST_RELEASE}-${GOOS}-${GOARCH}.tar.gz.sha512sum"
skip_cleanup: true

View File

@@ -1,9 +1,9 @@
# ubiquitous-memory: [Here be dragons][2]
[![Build Status](https://travis-ci.org/SmartHoneybee/ubiquitous-memory.svg?branch=master)](https://travis-ci.org/SmartHoneybee/ubiquitous-memory)
[![Build Status](https://github.com/SmartHoneybee/ubiquitous-memory/actions/workflows/release.yml/badge.svg)](https://github.com/SmartHoneybee/ubiquitous-memory/actions/workflows/release.yml)
[Travis CI][0] recipe that builds [Mattermost][1] for various operating systems and architectures.
[Github Actions][0] script that builds [Mattermost][1] for various operating systems and architectures.
[0]: https://travis-ci.org/SmartHoneybee/ubiquitous-memory
[0]: https://github.com/SmartHoneybee/ubiquitous-memory/actions
[1]: https://mattermost.com/
[2]: https://en.wikipedia.org/wiki/Here_be_dragons

View File

@@ -1,8 +1,17 @@
diff --git a/build/release.mk b/build/release.mk
index 1172509..219db00 100644
index 3e9a11339..c8bd5409f 100644
--- a/build/release.mk
+++ b/build/release.mk
@@ -123,7 +123,7 @@ endif
@@ -97,7 +97,7 @@ package:
cp -RL $(BUILD_WEBAPP_DIR)/dist/* $(DIST_PATH)/client
@#Download MMCTL
- scripts/download_mmctl_release.sh "" $(DIST_PATH)/bin
+ #scripts/download_mmctl_release.sh "" $(DIST_PATH)/bin
@# Help files
ifeq ($(BUILD_ENTERPRISE_READY),true)
@@ -126,7 +126,7 @@ endif
@# ----- PLATFORM SPECIFIC -----
@@ -11,7 +20,7 @@ index 1172509..219db00 100644
@# Make osx package
@# Copy binary
ifeq ($(BUILDER_GOOS_GOARCH),"darwin_amd64")
@@ -191,7 +191,7 @@ endif
@@ -196,7 +196,7 @@ endif
rm -f $(DIST_PATH)/bin/platform.exe
rm -f $(DIST_PATH)/bin/mmctl.exe
rm -f $(DIST_PATH)/prepackaged_plugins/*
@@ -20,11 +29,12 @@ index 1172509..219db00 100644
@# Make linux package
@# Copy binary
ifeq ($(BUILDER_GOOS_GOARCH),"linux_amd64")
@@ -201,7 +201,6 @@ else
cp $(GOBIN)/linux_amd64/mattermost $(DIST_PATH)/bin # from cross-compiled bin dir
@@ -207,7 +207,7 @@ else
cp $(GOBIN)/linux_amd64/platform $(DIST_PATH)/bin # from cross-compiled bin dir
endif
- MMCTL_FILE="linux_amd64.tar" && curl -f -O -L https://releases.mattermost.com/mmctl/v5.28.0/$$MMCTL_FILE && tar -xvf $$MMCTL_FILE -C $(DIST_PATH)/bin && rm $$MMCTL_FILE
#Download MMCTL for Linux
- scripts/download_mmctl_release.sh "Linux" $(DIST_PATH)/bin
+ #scripts/download_mmctl_release.sh "Linux" $(DIST_PATH)/bin
@# Prepackage plugins
@for plugin_package in $(PLUGIN_PACKAGES) ; do \
ARCH="linux-amd64"; \

13
build.sh Normal file → Executable file
View File

@@ -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

View File

@@ -1,3 +1,3 @@
module github.com/SmartHoneybee/ubiquitous-memory/dependabot
require github.com/mattermost/mattermost-server/v5 v5.28.1
require github.com/mattermost/mattermost-server/v5 v5.35.3