Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
Merge pull request #35 from redbubble/deb-repository
Browse files Browse the repository at this point in the history
Add the APT repository
  • Loading branch information
toothbrush authored May 4, 2018
2 parents 6d71ac7 + 8fed075 commit bf34782
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 31 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
VERSION ?= 1.2.0
VERSION ?= 1.2.1
GIT_HASH = $(shell git rev-parse --short HEAD)
DELIVERY_ENGINEERING_GPG_KEY = 9CC66977F5C47541

.PHONY: vendor test install

Expand All @@ -19,3 +20,4 @@ release:
git tag -a "v${VERSION}" -m "Releasing version ${VERSION}"
git push --tags
goreleaser --rm-dist
deb-s3 upload --s3-region=ap-southeast-2 --bucket=redbubble-deb-repository --sign=${DELIVERY_ENGINEERING_GPG_KEY} bin/yak_${VERSION}_linux_amd64.deb
66 changes: 36 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,45 +22,33 @@ brew install yak
This will also put ZSH and Bash completions in the right spot; they
should be usable next time you reload your shell config.

#### Ubuntu/Debian (`deb` package)
#### Ubuntu/Debian APT repository

Download the DEB package from the [latest release](https://github.com/redbubble/yak/releases/latest) page.
`yak` can be installed from our APT repo. This should get you up and
running:

You can then install it with

```
sudo apt install <filename>
```

or

```
sudo dpkg -i <filename>
```sh
sudo apt install apt-transport-https curl gnupg2
# This is the Redbubble GPG key, to verify releases:
curl https://redbubble-deb-repository.s3-ap-southeast-2.amazonaws.com/delivery-engineers.pub.asc | sudo apt-key add -
echo "deb https://redbubble-deb-repository.s3-ap-southeast-2.amazonaws.com/ stable main" > /etc/apt/sources.list.d/yak.list
sudo apt update
sudo apt install yak
```

#### RPM package
#### Standalone DEB/RPM packages

Download the RPM package from the [latest release](https://github.com/redbubble/yak/releases/latest) page.
We generate Deb and RPM packages as part of our release.

You can then install it with

```
sudo dnf install <filename>
```
Download the package appropriate for your distro from the [latest
release](https://github.com/redbubble/yak/releases/latest) page.
Unfortunately, this won't give you nice automatic updates.

#### A note about completions

We've seen issues using tab-completion on older versions of ZSH. It seems
that version 5.1 or newer will work correctly.

#### Go Get

This should only really be used if you want to hack on `yak`. If you want to do that:

```
go get -u github.com/redbubble/yak
```

#### Manually

Download the [latest release](https://github.com/yak/releases/latest) for your architecture. The `yak` executable is statically linked,
Expand Down Expand Up @@ -177,18 +165,36 @@ yak prod [<command>]

## Development

### Go Get

To hack on `yak`, you'll want to get a copy of the source. To do
that:

```
go get -u github.com/redbubble/yak
```

### Installing dependencies

You'll need the [dep](https://github.com/golang/dep) tool (if you're on macOS, `brew install dep`. Linux is a bit tricker; see the
[dep README](https://github.com/golang/dep#installation) for details).
You'll need the [dep](https://github.com/golang/dep) tool (if you're
on macOS, `brew install dep`. Linux is a bit tricker; see the [dep
README](https://github.com/golang/dep#installation) for details).

Then run:
Then run (inside your `$GOPATH/src/github.com/redbubble/yak` directory):
```
make vendor
```

This will install all your dependencies into the `vendor` directory.

If you want to do releases, you'll also want the `deb-s3` package.
You'll also want `gnupg2` to be able to sign releases, but i'll leave
installation of that up to you.

```sh
gem install deb-s3
```

### Running locally

The `make install` target will compile the application and 'install' it into your `$GOPATH`.
Expand Down
31 changes: 31 additions & 0 deletions static/delivery-engineers.pub.asc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQENBFrrsf8BCADPHrfWNGz4QuQfnFMShGo4vhNmQQPySy/Bollql5NcqHXRWRP9
iVjGbdIxweJUCTMydzbmVH9xcPnhSGJ4CSi/EbDJZBfniNx3fcVD1I+NJDRpqp0i
zzd5arRkub4PmZ4LFASQTCghzY+7+oCLm9UygMtbtb9b+xCCL/KtBMKtGF0BagIM
LnWucvTC7rKblT2lfX+Ggh+V0KhbCJc+vOJld/J2Pq2tx9ilo1WDnibk0/bsy8N9
FcJDo0Rq3+Y43cTYh5K4wrN75Axq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p
d/XEdUFJBwgAkowdyoU8doFV5rt1xzir4E9loojtd01neOrDWhaVumvaH3d351nR
AIsEetoWnp8S4lPzyk8BVMrAp4JpI9fGKDBXOLXII30pdZiLfmoEC2Z+aD4xesn6
F4fZto/CPC0MIDS7Nzm9bIedi6UFp7G5Swwcs/6K9gPYaGXwyGE2GNyfIe5fbrdO
lR7lIYPdAsKj15lgilDACdTcpoweJrBpdUdaDXFXnN2IlDghZDQlkJ93XoO6g2e2
0lY527MnJ5OY1o2HrbmIYXYNjiq2b2tDWX9OPk+QhNidPjNhUGdAbF6sS+ABUeyl
L+CC0B3Gmf443hR2fuUJHocmYSjVqgM/Mg==
=LY3W
-----END PGP PUBLIC KEY BLOCK-----

0 comments on commit bf34782

Please sign in to comment.