forked from nanopack/hoarder
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to Microbox names/namespaces
- Loading branch information
1 parent
8df58c2
commit 6563236
Showing
17 changed files
with
984 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: CI | ||
on: | ||
- push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: | ||
- x86 | ||
- x86_64 | ||
- armhf | ||
- armv7 | ||
- aarch64 | ||
- ppc64le | ||
- s390x | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Expose Latest QEMU | ||
run: sudo add-apt-repository ppa:savoury1/virtualisation | ||
|
||
- name: Setup Alpine chroot | ||
run: | | ||
wget https://raw.githubusercontent.com/alpinelinux/alpine-chroot-install/v0.13.3/alpine-chroot-install \ | ||
&& echo 'c3005e323029637db20ec9595243ac94bb9b2226 alpine-chroot-install' | sha1sum -c \ | ||
|| exit 1 | ||
chmod +x alpine-chroot-install | ||
sudo ./alpine-chroot-install -a ${{ matrix.arch }} -i $(pwd) | ||
/alpine/enter-chroot apk add abuild | ||
/alpine/enter-chroot addgroup ${USER} abuild | ||
echo "${{ secrets.ABUILD_ARCHIVE }}" | \ | ||
base64 -d | \ | ||
/alpine/enter-chroot -u ${USER} tar xzv -C ~/ | ||
- name: Build Package | ||
run: /alpine/enter-chroot -u ${USER} abuild -r -c -P /tmp/ | ||
|
||
- name: Clean Up | ||
run: | | ||
mv /alpine/tmp/hoarder/${{ matrix.arch }}/hoarder-*.apk hoarder-${{ matrix.arch }}.apk | ||
/alpine/destroy --remove | ||
- name: Upload As Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: hoarder-${{ matrix.arch }}.apk | ||
path: hoarder-${{ matrix.arch }}.apk | ||
retention-days: 5 | ||
|
||
- name: Upload To Release | ||
if: startsWith(github.ref, 'refs/tags/') | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: hoarder-${{ matrix.arch }}.apk | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Contributor: Hennik Hunsaker <[email protected]> | ||
# Maintainer: Hennik Hunsaker <[email protected]> | ||
pkgname=hoarder | ||
pkgver=0.2.3 | ||
pkgrel=0 | ||
pkgdesc="A simple, api-driven storage system for storing code builds and cached libraries for cloud-based deployment services." | ||
url="https://github.com/mu-box/hoarder" | ||
arch="all" | ||
license="MIT" | ||
depends="" | ||
makedepends="go git bash" | ||
checkdepends="" | ||
install="" | ||
subpackages="" | ||
source="" | ||
srcdir="/tmp/abuild/hoarder" | ||
builddir="" | ||
|
||
build() { | ||
go get -t -v . | ||
go install github.com/mitchellh/gox@latest | ||
export PATH="$(go env | grep GOPATH | sed -E 's/GOPATH="(.*)"/\1/')/bin:${PATH}" | ||
./scripts/build.sh | ||
} | ||
|
||
check() { | ||
# Replace with proper check command(s) | ||
: | ||
} | ||
|
||
package() { | ||
install -m 0755 -D ./build/hoarder "$pkgdir"/sbin/hoarder | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
module github.com/mu-box/hoarder | ||
|
||
go 1.17 | ||
|
||
require ( | ||
github.com/gorilla/context v1.1.1 // indirect | ||
github.com/gorilla/mux v1.8.0 // indirect | ||
github.com/gorilla/pat v1.0.1 | ||
github.com/jcelliott/lumber v0.0.0-20160324203708-dd349441af25 | ||
github.com/mu-box/golang-microauth v0.0.0-20220418115140-a7200e5d2be7 | ||
github.com/spf13/cobra v1.4.0 | ||
github.com/spf13/viper v1.11.0 | ||
) | ||
|
||
require ( | ||
github.com/fsnotify/fsnotify v1.5.1 // indirect | ||
github.com/hashicorp/hcl v1.0.0 // indirect | ||
github.com/inconshreveable/mousetrap v1.0.0 // indirect | ||
github.com/kr/pretty v0.2.0 // indirect | ||
github.com/magiconair/properties v1.8.6 // indirect | ||
github.com/mitchellh/mapstructure v1.4.3 // indirect | ||
github.com/pelletier/go-toml v1.9.4 // indirect | ||
github.com/pelletier/go-toml/v2 v2.0.0-beta.8 // indirect | ||
github.com/spf13/afero v1.8.2 // indirect | ||
github.com/spf13/cast v1.4.1 // indirect | ||
github.com/spf13/jwalterweatherman v1.1.0 // indirect | ||
github.com/spf13/pflag v1.0.5 // indirect | ||
github.com/subosito/gotenv v1.2.0 // indirect | ||
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad // indirect | ||
golang.org/x/text v0.3.7 // indirect | ||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect | ||
gopkg.in/ini.v1 v1.66.4 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect | ||
) |
Oops, something went wrong.