Skip to content

Commit

Permalink
build & put releases in GitHub (byebye Travis & Bintray)
Browse files Browse the repository at this point in the history
  • Loading branch information
joonas-fi committed Mar 12, 2020
1 parent e1847ca commit 99d7602
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 23 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download Turbo Bob
run: curl --fail --location --output bob https://dl.bintray.com/function61/dl/turbobob/20200220_1142_9c1ea959/bob_linux-amd64 && chmod +x bob
- name: Build with Turbo Bob
run: CI_REVISION_ID="$GITHUB_SHA" ./bob build --publish-artefacts
# unfortunately there doesn't seem to be a way to "expose all secrets", so you must
# list here each secret to pass on to the build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EVENTHORIZON: ${{ secrets.EVENTHORIZON }}
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
[![Build Status](https://img.shields.io/travis/function61/onni.svg?style=for-the-badge)](https://travis-ci.org/function61/onni)
[![Download](https://img.shields.io/badge/Download-bintray%20latest-blue.svg?style=for-the-badge)](https://bintray.com/function61/dl/onni/_latestVersion#files)
![Build status](https://github.com/function61/happy-api/workflows/Build/badge.svg)
[![Download](https://img.shields.io/github/downloads/function61/happy-api/total.svg?style=for-the-badge)](https://github.com/function61/happy-api/releases)

REST API for delivering happiness - hosted on AWS Lambda.

tl;dr: put [this URL](https://function61.com/api/happy)
to your application to enable your users to get their daily dose of happiness.

NOTE: this is a very new project and the URL will change to a prettier domain soon.
tl;dr: put URL https://function61.com/api/happy
in your application to enable your users to get their daily dose of happiness.


Use case
Expand Down Expand Up @@ -61,8 +59,7 @@ You have to do this only for the first time:

```
$ mkdir deployments
$ version="..." # find this from above Bintray link
$ deployer deployment-init happy-api "https://dl.bintray.com/function61/dl/onni/$version/deployerspec.zip"
$ deployer deployment-init happy-api "url_to_deployerspec.zip_in_GitHub_releases"
Wrote /home/joonas/deployments/happy-api/user-config.json
```

Expand All @@ -72,5 +69,5 @@ Then do the actual deployment:

```
$ version="..."
$ deployer deploy happy-api "https://dl.bintray.com/function61/dl/onni/$version/deployerspec.zip"
$ deployer deploy happy-api "same_url_as_in_init"
```
10 changes: 4 additions & 6 deletions turbobob.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,15 @@
},
{
"name": "publisher",
"uses": "docker://fn61/buildkit-publisher:20190206_1058_d35b3939",
"uses": "docker://fn61/buildkit-publisher:20200228_1755_83c203ff",
"mount_destination": "/workspace",
"commands": {
"publish": ["publish.sh", "rel/*"],
"publish": ["publish-gh.sh", "function61/happy-api", "rel/"],
"dev": ["bash"]
},
"env": {
"BINTRAY_PROJECT": "function61/dl/onni"
},
"pass_envs": [
"BINTRAY_CREDS"
"GITHUB_TOKEN",
"EVENTHORIZON"
]
}
],
Expand Down

0 comments on commit 99d7602

Please sign in to comment.