mirror of
https://github.com/replicatedhq/ttl.sh.git
synced 2026-05-11 19:06:33 +00:00
converted workflow to yaml
This commit is contained in:
82
.github/workflows/main.yaml
vendored
Normal file
82
.github/workflows/main.yaml
vendored
Normal file
@@ -0,0 +1,82 @@
|
||||
name: Deploy to Heroku
|
||||
|
||||
on:
|
||||
push:
|
||||
resolves:
|
||||
- "release registry"
|
||||
- "release hooks"
|
||||
- "release reaper"
|
||||
|
||||
jobs:
|
||||
only master branch:
|
||||
runs-on: ubuntu-latest
|
||||
uses: actions/bin/filter@master
|
||||
with:
|
||||
args: "branch master"
|
||||
|
||||
heroku login:
|
||||
needs: only master branch
|
||||
uses: actions/heroku@master
|
||||
with:
|
||||
args: container:login
|
||||
secrets:
|
||||
- ${{secrets.HEROKU_API_KEY}}
|
||||
|
||||
build registry:
|
||||
needs: heroku login
|
||||
uses: actions/docker/cli@master
|
||||
with:
|
||||
args: "build -t registry.heroku.com/ttlsh/web registry"
|
||||
|
||||
push registry:
|
||||
needs: build registry
|
||||
with:
|
||||
args: "push registry.heroku.com/ttlsh/web"
|
||||
|
||||
release registry:
|
||||
needs: push registry
|
||||
uses: actions/heroku@master
|
||||
with:
|
||||
args: "container:release -a ttlsh web"
|
||||
secrets:
|
||||
- ${{secrets.HEROKU_API_KEY}}
|
||||
|
||||
build hooks:
|
||||
needs: heroku login
|
||||
uses: actions/docker/cli@master
|
||||
with:
|
||||
args: "build -f hooks/Dockerfile.hooks -t registry.heroku.com/ttlsh-hooks/web hooks"
|
||||
|
||||
push hooks:
|
||||
needs: build hooks
|
||||
uses: actions/docker/cli@master
|
||||
with:
|
||||
args: "push registry.heroku.com/ttlsh-hooks/web"
|
||||
|
||||
release hooks:
|
||||
needs: push hooks
|
||||
uses: actions/heroku@master
|
||||
with:
|
||||
args: "container:release -a ttlsh-hooks web"
|
||||
secrets:
|
||||
- ${{secrets.HEROKU_API_KEY}}
|
||||
|
||||
build reaper:
|
||||
needs: heroku login
|
||||
uses: actions/docker/cli@master
|
||||
with:
|
||||
args: "build -f hooks/Dockerfile.reap -t registry.heroku.com/ttlsh-hooks/reap hooks"
|
||||
|
||||
push reaper:
|
||||
needs: build reaper
|
||||
uses: actions/docker/cli@master
|
||||
with:
|
||||
args: "push registry.heroku.com/ttlsh-hooks/reap"
|
||||
|
||||
release reaper:
|
||||
needs: push reaper
|
||||
uses: actions/heroku@master
|
||||
with:
|
||||
args: "container:release -a ttlsh-hooks reap"
|
||||
secrets:
|
||||
- ${{secrets.HEROKU_API_KEY}}
|
||||
Reference in New Issue
Block a user