Skip to content

Commit

Permalink
adding in initial nfpm/fury pkg hosting (#1398)
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Eyberg <[email protected]>
  • Loading branch information
eyberg and Ian Eyberg authored Dec 14, 2022
1 parent 0dbd286 commit a334e99
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,24 @@ If you don't like this option you can also download pre-made packages
for various systems [here](https://ops.city/downloads) and you can also
build from source.

## Debian / Redhat:

Add a deb src:

```
sudo vi /etc/apt/sources.list.d/fury.list
```

```
deb [trusted=yes] https://apt.fury.io/nanovms/ /
```

Update your sources && install:

```
sudo apt-get update && sudo apt-get install ops
```

## Build and Install from source

Building from source is easy if you have used Go before.
Expand Down
6 changes: 6 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ plat="$(uname -s | awk '{print tolower($0)}')"
GO111MODULE=on GOOS=linux go build -ldflags "-X github.com/nanovms/ops/lepton.Version=$VERSION"
gsutil cp ops gs://cli/linux

nfpm pkg --packager deb --target /tmp/
nfpm pkg --packager rpm --target /tmp/

curl -F package=@/tmp/ops_"$VERSION"_amd64.deb https://$TOKEN@push.fury.io/nanovms/
curl -F package=@/tmp/ops-"$VERSION".x86_64.rpm https://$TOKEN@push.fury.io/nanovms/

hash="ops-linux-$VERSION.md5"

if [ "$plat" = 'darwin' ]
Expand Down

0 comments on commit a334e99

Please sign in to comment.